Skip to content

Commit

Permalink
Update guri.zsh-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
victorfsf authored Nov 11, 2017
1 parent f08b83b commit 3c3488b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions guri.zsh-theme
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ docker_machine_prompt_info() {
fi
}

virtualenv_indicator() {
if [[ -z "$VIRTUAL_ENV" ]]; then
psvar[1]=""
psvar[2]=""
else
psvar[1]="${VIRTUAL_ENV##*/} "
psvar[2]=" v$(python --version 2>&1 | sed -e "s/Python //")"
fi
}

run_dot_file() {
if [[ "$GURI_EXEC_DOT_FILE" -eq 1 ]] && [[ -f "$GURI_DOT_FILE" ]]; then
source "$GURI_DOT_FILE"
Expand Down

0 comments on commit 3c3488b

Please sign in to comment.