-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
44 lines (38 loc) · 1.07 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
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\[\033[32m\]\$(parse_git_branch)\[\033[00m\] \w $ "
alias sl="ls"
alias ls="ls -G"
alias l="ls -Glrtsh"
alias ...="cd ../.."
alias ..="cd .."
alias cw="cd ~/work"
alias cww="cd ~/work/wapi"
alias coding="cd ~/coding"
alias cw4="cd ~/work/v4; workon v4"
alias v="vim"
alias s="ssh"
alias ci="ssh ci"
alias rmpyc="find . -name '*.pyc' -type f -delete"
alias fuck='sudo $(history -p \!\!)'
alias gitl="git log --all --decorate --graph --date-order"
alias gits="git status"
alias wow="git status"
alias gist="git status"
alias gitd="git diff"
alias gitdc="git diff --cached"
alias gitc="git commit"
alias gitcam="git commit -am"
alias gitpr="git pull --rebase"
alias gitco="git checkout"
alias gitcob="git checkout -b"
alias gitpp="git pull; git push"
alias gitp="git push"
alias gitb="git branch"
alias gitba="git branch -a"
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/work
source /usr/local/bin/virtualenvwrapper.sh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8