Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include collors
- if [ -f ~/.bash_colors ]; then
- . ~/.bash_colors
- fi
- if [ -f ~/.bash_aliases ]; then
- . ~/.bash_aliases
- fi
- # Bash prompt function
- function set_bash_prompt() {
- # Determine active Python virtualenv details.
- if test -z "$VIRTUAL_ENV" ; then
- PYTHON_VIRTUALENV=""
- else
- PYTHON_VIRTUALENV="<`basename \"$VIRTUAL_ENV\"`> "
- fi
- PS1="\n ┌─[ ${IGreen}\w${ColorOff} ]\n └─[ ${IRed}${PYTHON_VIRTUALENV}${ColorOff}${ICyan}\u${ColorOff}${IYellow}\$(__git_ps1)${ColorOff} ]${IPurple}-->${ColorOff} "
- }
- # Tell bash to execute this function just before displaying its prompt.
- PROMPT_COMMAND=set_bash_prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement