4ab273e19ad1768163e662831b3418a2fc9b6eee

Author
Marc Cornellà <marc.cornella@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

pipenv: toggle pipenv shell on startup

Fixes #9136

Diff

 1diff --git a/plugins/pipenv/pipenv.plugin.zsh b/plugins/pipenv/pipenv.plugin.zsh
 2index e7a9e6b3c6bbdf5ec6aae74a4521110e3421d79e..4be61a92055931235324d149796dbb8f440ebf2a 100644
 3--- a/plugins/pipenv/pipenv.plugin.zsh
 4+++ b/plugins/pipenv/pipenv.plugin.zsh
 5@@ -1,6 +1,6 @@
 6 # Pipenv completion
 7 _pipenv() {
 8-  eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh  pipenv)
 9+  eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh pipenv)
10 }
11 compdef _pipenv pipenv
12 
13@@ -25,6 +25,7 @@ _togglePipenvShell() {
14 }
15 autoload -U add-zsh-hook
16 add-zsh-hook chpwd _togglePipenvShell
17+_togglePipenvShell
18 
19 # Aliases
20 alias pch="pipenv check"