Skip to content

Commit

Permalink
Add python virtualenv to prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
olsonbg committed Dec 3, 2018
1 parent 8f987ce commit 970af79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dirs/bash.d/common/prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ function __prompt_command()
PS1+="$YEL$SUS$NONE"
PS1+="$CYAN:\W$NONE"

# Show python virtual environment if one is active
if [ -n "$VIRTUAL_ENV" ]; then
local virtualenv=$(basename "$VIRTUAL_ENV")
PS1+=" $CYAN($GREEN$virtualenv$CYAN)$NONE"
fi

local git_status="$(git status 2>&1)"
local Color_On
local branch
Expand Down

0 comments on commit 970af79

Please sign in to comment.