Skip to content

Instantly share code, notes, and snippets.

@adrian7
Created April 25, 2015 10:16
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 adrian7/b5500ac00efd0ca5ba4c to your computer and use it in GitHub Desktop.
Save adrian7/b5500ac00efd0ca5ba4c to your computer and use it in GitHub Desktop.
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
export HISTTIMEFORMAT="%F %T "
alias ls='ls -GFh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment