Skip to content

Instantly share code, notes, and snippets.

@thomasaarholt
Created December 13, 2020 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasaarholt/94ce3653cefdf0fc3f209645e9304786 to your computer and use it in GitHub Desktop.
Save thomasaarholt/94ce3653cefdf0fc3f209645e9304786 to your computer and use it in GitHub Desktop.
Bash PS1 Prompt code to show conda environment, last two directories and nothing more, in colour
export PROMPT_DIRTRIM=2
export PS1="\[\e[0m\](\[\e[32;40m\]\$CONDA_DEFAULT_ENV\[\e[0m\]) \[\e[36;40m\]\w: \[\e[0m\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment