Skip to content

Instantly share code, notes, and snippets.

@Schniz
Last active December 16, 2015 02:29
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 Schniz/5362466 to your computer and use it in GitHub Desktop.
Save Schniz/5362466 to your computer and use it in GitHub Desktop.
My startup file @ Ubuntu
# Git branch parsing
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/'
}
# Prompt
export PS1="\[\e[33m\]\u\[\e[0m\] \w\[\e[32m\]\$(parse_git_branch)\[\e[0m\] \[\e[1;34m\]≋\[\e[0m\] "
# Aliases
alias ls="ls --color" # LSing in color!
alias putclip="xclip -selection clip-board" # For clipboard stuff
alias art="php artisan" # Artisan all the way!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment