Created
December 4, 2013 18:10
-
-
Save mateuszgachowski-snippets/7792517 to your computer and use it in GitHub Desktop.
Bash: Sample .bash_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
# Bash # | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1='\[\033[01;32m\]\u@\[\033[01;36m\] \W \[\033[01;33m\]$(parse_git_branch)\[\033[01;34m\] \$\[\033[00m\] ' | |
# Aliases # | |
alias ls='ls -G -S -F' | |
alias ..='cd ..' | |
alias sublime='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' | |
alias cato='pygmentize -g' | |
# Z # | |
. ~/.termscripts/z/z.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment