forked from marchibbins/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
72 lines (60 loc) · 1.85 KB
/
bashrc
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
63
64
65
66
67
68
69
70
71
72
## Bash config: Gareth Foote (@gaffafoote)
#cd
alias ~='cd ~'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias cd..='cd ..'
#GIT
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gsl='git shortlog'
alias gs='git status'
alias gss='git status --short'
alias gd='git diff'
alias gdc='git diff --cached'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
alias gc='git checkout'
alias gra='git remote add'
alias grr='git remote rm'
alias gpu='git pull'
alias gcl='git clone'
#See files affected by git commit. Requries commit id.
alias git-ci-affected='git show --pretty="format:" --name-only'
export EDITOR=vim
# SSH - See ~/.ssh/config
# ls
if [[ $os == 'Linux' ]]; then
alias ls='ls --color=auto'
alias l='ls -CF --color'
alias la='ls -AF --color'
alias ll='ls -AlF --color'
alias ls='ls -F --color'
elif [[ $os == 'Darwin' ]]; then
alias ls='ls -G'
alias l='ls -CFG'
alias la='ls -AFG'
alias ll='ls -AlFG'
alias ls='ls -FG'
fi
alias watch='watch '
alias ack='ack-grep'
# virtualenvwrapper setup
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS='--no-site-packages'
source /usr/local/bin/virtualenvwrapper.sh
# Node version manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Google Cloud SDK
if [ -f '/Users/gfoote/local/google-cloud-sdk/path.zsh.inc' ]; then source '/Users/gfoote/local/google-cloud-sdk/path.zsh.inc'; fi
# Shell command completion for gcloud
if [ -f '/Users/gfoote/local/google-cloud-sdk/completion.zsh.inc' ]; then source '/Users/gfoote/local/google-cloud-sdk/completion.zsh.inc'; fi
# Python
export PATH="${PATH}:/Users/gfoote/Library/Python/2.7/bin"
source ~/.env
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"