From d940cab887e81ec43910585c1ae16614790ee868 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Mon, 31 Oct 2022 21:36:22 +0300 Subject: [PATCH] fix: pyenv --- sub/zsh/other | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sub/zsh/other b/sub/zsh/other index 2b35d0a..43ba5a1 100644 --- a/sub/zsh/other +++ b/sub/zsh/other @@ -25,6 +25,8 @@ if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then fi -export PYENV_ROOT="$HOME/.pyenv" -command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" -eval "$(pyenv init -)" +if [ -n "$(command -v pyenv >/dev/null)" ]; then + export PYENV_ROOT="$HOME/.pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init -)" +fi