1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-18 16:26:50 +00:00
dotfiles/.zsh/pyenv.zsh
Luna Komorebi 212f33cd58 refactor: Replace iscmd with test -f to improve pyenv detection.
- 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.
2023-05-24 12:30:56 +02:00

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