Unverified Commit 4ab273e1 authored by Marc Cornellà's avatar Marc Cornellà Committed by GitHub
Browse files

pipenv: toggle pipenv shell on startup

Fixes #9136
parent 345cb99e
# Pipenv completion # Pipenv completion
_pipenv() { _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 compdef _pipenv pipenv
...@@ -25,6 +25,7 @@ _togglePipenvShell() { ...@@ -25,6 +25,7 @@ _togglePipenvShell() {
} }
autoload -U add-zsh-hook autoload -U add-zsh-hook
add-zsh-hook chpwd _togglePipenvShell add-zsh-hook chpwd _togglePipenvShell
_togglePipenvShell
# Aliases # Aliases
alias pch="pipenv check" alias pch="pipenv check"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment