Skip to content

Commit

Permalink
fix: venv unknown -v option
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Svrček committed Apr 16, 2023
1 parent 334cc6e commit 28c516b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Themeraf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ zstyle ':vcs_info:git:*' formats '%b'

# venv
function venv_part() {
if [[ -v VIRTUAL_ENV ]]; then
if [[ $(echo -n "$VIRTUAL_ENV" | wc -m) -ge 2 ]]; then
echo "%F{159}`basename $VIRTUAL_ENV`%f${SEPARATOR}"
fi
}
Expand Down

0 comments on commit 28c516b

Please sign in to comment.