Finally fixing prompt color and pipenv venv in prompt

This commit is contained in:
jon
2019-01-20 15:18:16 -06:00
parent f1421eeb48
commit 6983714075
3 changed files with 10 additions and 4 deletions

View File

@@ -50,10 +50,15 @@ export HISTSIZE=1000
export HISTFILESIZE=2000
# Prompt
if [ -z $TERM ]; then
if [ ! -z "$TERM" ]; then
export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u@\h \W]\\$ \[$(tput sgr0)\]"
fi
if [ ! -z "$VIRTUAL_ENV" ]; then
#export PS1="[$(basename "$VIRTUAL_ENV")] \[\u@\h \W]\\$"
export PS1="[$(basename "$VIRTUAL_ENV")] $PS1"
fi
# fedoras stupid command-not-found shit
unset command_not_found_handle