Folder to easyly add some customisation to bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

venv_prompt.sh 447B

12345678910111213141516171819
  1. function venv_status {
  2. COLOR_WHITE="\033[00m"
  3. COLOR_CYAN="\033[1;36m"
  4. COLOR_RED="\033[1;31m"
  5. COLOR_YELLOW="\033[1;33m"
  6. COLOR_DARKYELLOW="\033[0;33m"
  7. COLOR_GREEN="\033[1;32m"
  8. COLOR_DARKGREEN="\033[0;32m"
  9. COLOR_OCHRE="\033[38;5;95m"
  10. if [[ ! $VIRTUAL_ENV == "" ]]; then
  11. echo -e "$COLOR_DARKGREEN(🐍 `basename \"$VIRTUAL_ENV\"`)$COLOR_OCHRE "
  12. fi
  13. }
  14. export VIRTUAL_ENV_DISABLE_PROMPT=1
  15. PS1='$(venv_status)'"$PS1"
  16. export PS1