Advertisement
Guest User

Untitled

a guest
Sep 1st, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. # include collors
  2. if [ -f ~/.bash_colors ]; then
  3. . ~/.bash_colors
  4. fi
  5.  
  6. if [ -f ~/.bash_aliases ]; then
  7. . ~/.bash_aliases
  8. fi
  9.  
  10. # Bash prompt function
  11. function set_bash_prompt() {
  12. # Determine active Python virtualenv details.
  13. if test -z "$VIRTUAL_ENV" ; then
  14. PYTHON_VIRTUALENV=""
  15. else
  16. PYTHON_VIRTUALENV="<`basename \"$VIRTUAL_ENV\"`> "
  17. fi
  18.  
  19. PS1="\n ┌─[ ${IGreen}\w${ColorOff} ]\n └─[ ${IRed}${PYTHON_VIRTUALENV}${ColorOff}${ICyan}\u${ColorOff}${IYellow}\$(__git_ps1)${ColorOff} ]${IPurple}-->${ColorOff} "
  20. }
  21.  
  22. # Tell bash to execute this function just before displaying its prompt.
  23. PROMPT_COMMAND=set_bash_prompt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement