Created
October 5, 2010 19:23
-
-
Save sparrovv/612161 to your computer and use it in GitHub Desktop.
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
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
alias ls='ls -G' # OS-X SPECIFIC - the -G command in OS-X is for colors, in Linux it's no groups | |
alias ..='cd ..' | |
alias ...='cd .. ; cd ..' | |
alias g='grep -i' #case insensitive grep | |
alias f='find . -iname' | |
alias ducks='du -cks * | sort -rn|head -11' # Lists the size of all the folders and files | |
alias top='top -o cpu' | |
alias systail='tail -f /var/log/system.log' | |
alias airport-off='sudo /usr/sbin/networksetup -setairportpower en1 off' | |
alias airport-on='sudo /usr/sbin/networksetup -setairportpower en1 on' | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" | |
#PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "*" | |
} | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/" | |
} | |
PS1='\u@\h \[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment