1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

pipenv: toggle pipenv shell on startup

Fixes #9136
This commit is contained in:
Marc Cornellà 2020-08-01 15:26:02 +02:00 committed by GitHub
parent 345cb99e5b
commit 4ab273e19a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
# 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() {
} }
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"