Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My bash profile
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (git \1)/'
export PS1="\\n\D{%F %T} \[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h \[\033[33;1m\]\w\[\033[m\] \$(parse_git_branch)\n\$ "
export CLICOLOR=1
export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}\007"'
export LSCOLORS=ExFxBxDxCxegedabagacad
export HISTCONTROL=ignoreboth:erasedups
alias ls='ls -GFh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.