Browse Source

add pyenv support

master
xenua 3 years ago
parent
commit
fcff329dc0
Signed by: xenua
GPG Key ID: 8F93B68BD37255B8
  1. 1
      runcoms/zprofile
  2. 7
      runcoms/zshrc

1
runcoms/zprofile

@ -65,3 +65,4 @@ fi @@ -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

7
runcoms/zshrc

@ -20,3 +20,10 @@ fi @@ -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

Loading…
Cancel
Save