Skip to content

Instantly share code, notes, and snippets.

@dherault
Created September 25, 2018 16:54
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 dherault/83bed42b441de2f2dcca74f57185086a to your computer and use it in GitHub Desktop.
Save dherault/83bed42b441de2f2dcca74f57185086a to your computer and use it in GitHub Desktop.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[31m\]@\[\033[01;33m\]\h \[\033[01;36m$
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
alias server='python -m SimpleHTTPServer'
alias n='npm start'
alias d='npm run dev'
alias w='npm run watch'
alias b='npm run build'
alias t='npm test'
alias commit='sh ~/scripts/quick_commit.sh'
alias amend='git add . -A && git commit --amend'
alias gcm='git checkout master'
alias octavex='octave --no-gui'
alias p3='python3.5'
alias samiam='cd /home/david/Software/samiam/ && ./runsamiam'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment