Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
4ab273e1
Unverified
Commit
4ab273e1
authored
Aug 01, 2020
by
Marc Cornellà
Committed by
GitHub
Aug 01, 2020
Browse files
pipenv: toggle pipenv shell on startup
Fixes #9136
parent
345cb99e
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/pipenv/pipenv.plugin.zsh
View file @
4ab273e1
# 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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment