Created
April 7, 2016 08:06
-
-
Save kimhogeling/0215bed2ba99a24c6b1f58ad595ec232 to your computer and use it in GitHub Desktop.
my .profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# git branch | |
# ========== | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/🍃 \1/' | |
} | |
export PS1="\`if [ \$? != 0 ]; then echo 🙈 🙉 🙊; fi\`\n⏰ \e[31m\]\t 👾 \[\e[34m\]\w\[\033[32m\] \$(parse_git_branch)\[\e[00m\]\n🎸 " | |
# colors | |
# ====== | |
export CLICOLOR=1 | |
# git alias | |
# ========= | |
alias gits='git status' | |
alias gittree='git log --graph --oneline --all' | |
alias gco='git checkout' | |
alias gpl='git pull origin' | |
alias gplr='git pull --rebase origin' | |
alias gps='git push origin' | |
alias gcod='gco development' | |
alias gpld='gpl development' | |
alias gpsd='gps development' | |
# usefull other alias | |
# =================== | |
alias grep='grep --color=auto' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment