8 lines
332 B
Bash
8 lines
332 B
Bash
function _parse_git_branch() {
|
|
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
|
|
}
|
|
|
|
export PS1="\[\e[0;97m\]\[\e[37m\e[1m\]\u\[\e[1;94m\]@\[\e[94m\]\H\[\e[0;33m\]\$(_parse_git_branch) \[\e[37m\]\w\[\e[33m\] \[\e[0;97m\]$\[\e[0m\] "
|
|
export rc=/home/$USERNAME/.bashrc
|
|
export VIRTUALENV_DIR=/home/$USERNAME/.venvs
|