-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
62 lines (57 loc) · 1.99 KB
/
bash_profile
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
61
62
export HISTSIZE=9999
export GOROOT=/usr/local/go
export GOPATH=$HOME/src/go
export PATH=$GOPATH/bin:$HOME/bin:/usr/local/bin:/usr/local/heroku/bin:$PATH
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export EDITOR=emacsclient
[[ -f "$HOME/.bash_secrets" ]] && source ~/.bash_secrets
[[ -f "$HOME/.git-completion.bash" ]] && source ~/.git-completion.bash
[[ -f "$HOME/.git-prompt.sh" ]] && source ~/.git-prompt.sh
[[ -f "$HOME/.bash_colors" ]] && source ~/.bash_colors
[[ -f "$HOME/.profile" ]] && source ~/.profile
bind "set completion-ignore-case on"
bind "set show-all-if-ambiguous on"
alias ..='cd ..'
alias afk='/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend'
alias agg='ag --go -S'
alias agr='ag --ruby -S'
alias apiori="curl https://api.stripe.com/healthcheck"
alias be='bundle exec'
alias ber='bundle exec ruby'
alias blog='cd ~/src/cosn.github.io/'
alias e='emacsclient'
alias em='open -a /Applications/Emacs.app $1'
alias gci='hub ci-status -v'
alias gh='cd ~/Documents/github'
alias gith='hub'
alias gogh='cd ~/src/go/src/github.com/cosn'
alias gom='git pull origin master'
alias gm='b=`git rev-parse --abbrev-ref HEAD` && git co master && gp && git b -d $b && git remote prune origin'
alias gp='git pull'
alias gph='git push origin HEAD'
alias gphf='git push -f origin HEAD'
alias gpr='hub pull-request'
alias gprune='git remote prune origin'
alias grb='git pull --rebase origin'
alias grep='grep --color'
alias ls='ls -GFh'
alias ap='cd ~/stripe/apiori'
alias p='cd ~/stripe/pay-server'
alias pc='cd ~/stripe/puppet-config'
alias s='cd ~/stripe'
Time12h="\T"
Time12a="\@"
PathFull="\w"
PathShort="\W"
export PS1=$Black$Time12h$Color_Off'$(
if [ -d ".git" ]; then \
echo "$(echo `git status` | grep "nothing to commit" > /dev/null 2>&1; \
if [ "$?" -eq "0" ]; then \
echo "'$Green'"$(__git_ps1 " (%s)"); \
else \
echo "'$Red'"$(__git_ps1 " (%s)"); \
fi) '$BPurple$PathFull$Color_Off' \$ "; \
else \
echo " '$BPurple$PathShort$Color_Off' \$ "; \
fi)'