-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
60 lines (50 loc) · 2.47 KB
/
bash_profile
File metadata and controls
60 lines (50 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PATH="~/bin:/usr/local/bin:/usr/local/sbin:~/Development/android-sdk/platform-tools:~/Development/android-sdk/tools:/usr/local/share/python:$PATH"
export PATH
export EDITOR='mvim -f'
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
source ~/.git_completion.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config | grep -v "[?*]" | cut -d " " -f2)" scp sftp ssh
BLACK="\[\033[30m\]"
RED="\[\033[31m\]"
GREEN="\[\033[32m\]"
BROWN="\[\033[33m\]"
BLUE="\[\033[34m\]"
PURPLE="\[\033[35m\]"
CYAN="\[\033[36m\]"
GRAY="\[\033[37m\]"
NO_COLOUR="\[\033[0m\]"
#PS1="\n${PURPLE}♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♪ ♫ ♩ ♬ ♭ \n${GRAY}(${BLUE}\w${GRAY})\n${GREEN}\u@\h${GREEN}$(__git_ps1 " (\[\033[35m\]%s\[\033[32m\])") ${RED}→${GRAY} "
PS1='\n\[\033[1;35m\]♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♮ ♪ ♫ ♩ ♬ ♭ ♪ ♫ ♩ ♬ ♭ \n\[\033[1;37m\](\[\033[1;34m\]\w\[\033[1;37m\])\n\[\033[1;32m\]\u@\h\[\033[32m\] $(__git_ps1 "(\[\033[35m\]%s\[\033[32m\]) ")\[\033[0;31m\]→\[\033[37m\] '
alias reloadbash='source ~/.bash_profile'
alias xcbr='xcodebuild -configuration Release -sdk iphonesimulator5.1'
alias xcbb='xcodebuild -configuration Debug -sdk iphonesimulator5.1'
alias pgstart='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start'
alias pgstop='pg_ctl -D /usr/local/var/postgres stop -s -m fast'
alias mysqlstart='mysql.server start'
alias mysqlstop='mysql.server stop'
alias showhiddenfiles='defaults write com.apple.finder AppleShowAllFiles TRUE'
alias hidehiddenfiles='defaults write com.apple.finder AppleShowAllFiles FALSE'
alias pythonwebserver='python -m SimpleHTTPServer'
alias gst='git status'
alias gs='git status -sb'
alias gdw='git diff --word-diff'
alias gl='git log --oneline'
alias gt='git log --graph --oneline --decorate'
alias gp='git push'
alias gd='git diff | gitx'
alias gx='gitx --all'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gaa='git add .'
alias gap='git add -p'
alias gcm='git commit -v -m'
alias gcam='git commit -v -a -m'
alias gb='git branch'
alias gba='git branch -a'
alias vim='mvim -v'