Created
April 25, 2015 10:16
-
-
Save adrian7/b5500ac00efd0ca5ba4c to your computer and use it in GitHub Desktop.
My bash profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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