summaryrefslogtreecommitdiff
path: root/themes/edvardm.zsh-theme
diff options
context:
space:
mode:
authorDom Sekotill <dom.sekotill@kodo.org.uk>2021-06-12 04:52:22 +0100
committerGitHub <noreply@github.com>2021-06-11 20:52:22 -0700
commit94ea7b4516561c8a7587c7b74351bd6dd4f74583 (patch)
treedc60e64ba3fe6230893dfec85fb4951344869e1c /themes/edvardm.zsh-theme
parent0869a57cb585ad6279abf108c742e3c6650ed9d5 (diff)
downloadzsh-94ea7b4516561c8a7587c7b74351bd6dd4f74583.tar.gz
zsh-94ea7b4516561c8a7587c7b74351bd6dd4f74583.tar.bz2
zsh-94ea7b4516561c8a7587c7b74351bd6dd4f74583.zip
fix(virtualenvwrapper): several changes for checking git directory, including fixes (#5663)
* Test only for the presence of a .git directory in virtualenvwrapper Instead of using both $(git rev-parse --show-toplevel) and a check for a .git directory, use just the latter. As well as being redundant the former does not work quite so well when using multiple worktrees; each worktree will be treated as a separate project. * Unset ENV_NAME & deactivate if no virtualenv found This addresses #4603 without breaking current behaviour (where current behaviour is correct). When changing directories, if there is no environment matching ENV_NAME, ENV_NAME is emptied and deactivate called if there is a current environment active (based on CD_VIRTUAL_ENV). * Use path comparison not string comparison for paths This will solve part of issue #4255 where WORKON_HOME is defined with a trailing slash or not normalised in some way, as well as instances where symlinks are used, and any other instances where constructed paths don't exactly match even though they go to the same file. Co-authored-by: Robby Russell <robby@planetargon.com>
Diffstat (limited to 'themes/edvardm.zsh-theme')
0 files changed, 0 insertions, 0 deletions