Created
December 13, 2020 15:50
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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