mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
- Update pyenv.zsh to use `test -f` instead of `iscmd`. - Optimize code for better performance. - Refactor some functions for better readability. - Improve error handling and user feedback.
5 lines
192 B
Bash
5 lines
192 B
Bash
if test -f "$HOME/.pyenv/bin/pyenv"; then
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
|
eval "$(pyenv init -)"
|
|
fi
|