diff --git a/runcoms/zprofile b/runcoms/zprofile index 4629cbe..35b29eb 100644 --- a/runcoms/zprofile +++ b/runcoms/zprofile @@ -65,3 +65,4 @@ fi if [[ -z "$LESSOPEN" ]] && (( $#commands[(i)lesspipe(|.sh)] )); then export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-" fi + diff --git a/runcoms/zshrc b/runcoms/zshrc index 3654b9b..6e6c46d 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -20,3 +20,10 @@ fi function mkcd() { mkdir $1 && cd $1 }; alias vim=nvim + +if type pyenv > /dev/null; then + export PYENV_ROOT="$HOME/.pyenv" + export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init --path)" + eval "$(pyenv init -)" +fi