Skip to content

Instantly share code, notes, and snippets.

@yocontra
Created May 23, 2014 00:11
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 yocontra/ecfe12ad1253ba39863f to your computer and use it in GitHub Desktop.
Save yocontra/ecfe12ad1253ba39863f to your computer and use it in GitHub Desktop.
alias fucking=sudo
alias "npm-update"="rm -rf node_modules && npm install"
alias "update-everything"="nave usemain stable && sudo npm update -g && brew update && brew upgrade"
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\[\033[33;1m\]\w\[\033[m\] (\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)) \$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
alias ls='ls -GFh'
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))/"
}
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\[\033[33;1m\]\w\[\033[m\]\$(parse_git_branch)\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment