浏览代码

pipenv: toggle pipenv shell on startup

Fixes #9136
Marc Cornellà 3 年之前
父节点
当前提交
4ab273e19a
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      plugins/pipenv/pipenv.plugin.zsh

+ 2 - 1
plugins/pipenv/pipenv.plugin.zsh

@@ -1,6 +1,6 @@
 # Pipenv completion
 _pipenv() {
-  eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh  pipenv)
+  eval $(env COMMANDLINE="${words[1,$CURRENT]}" _PIPENV_COMPLETE=complete-zsh pipenv)
 }
 compdef _pipenv pipenv
 
@@ -25,6 +25,7 @@ _togglePipenvShell() {
 }
 autoload -U add-zsh-hook
 add-zsh-hook chpwd _togglePipenvShell
+_togglePipenvShell
 
 # Aliases
 alias pch="pipenv check"