Skip to content

Instantly share code, notes, and snippets.

@QinMing
Last active July 10, 2017 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QinMing/d166cfd6b4a3a078669958d832a7f22d to your computer and use it in GitHub Desktop.
Save QinMing/d166cfd6b4a3a078669958d832a7f22d to your computer and use it in GitHub Desktop.
alias grep='grep --color=auto'
alias l="ls -alhtr"
alias g='git'
alias gs="git status"
alias gl="git l"
alias gd="git diff"
alias gb="git branch"
alias gp="git pull"
function parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1='\h \[\e[34m\]\T\[\e[0m\] \w$(parse_git_branch)$ '
HISTFILESIZE=2048
# Loading Simple Virtualenv Wrapper https://github.com/QinMing/simple-virtualenv-wrapper
source $HOME/git/simple-virtualenv-wrapper/ve.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment