mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Use more idiomatic check for commands
This commit is contained in:
parent
12974ec6d5
commit
6e5244d158
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
|||
# This plugin loads pyenv into the current shell and provides prompt info via
|
||||
# the 'pyenv_prompt_info' function. Also loads pyenv-virtualenv if available.
|
||||
|
||||
if which pyenv > /dev/null; then
|
||||
if (( $+commands[pyenv] )); then
|
||||
eval "$(pyenv init - zsh)"
|
||||
if which pyenv-virtualenv-init > /dev/null; then
|
||||
if (( $+commands[pyenv-virtualenv-init] )); then
|
||||
eval "$(pyenv virtualenv-init - zsh)"
|
||||
fi
|
||||
function pyenv_prompt_info() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue