From fcff329dc0d3cf389cea15b8ea302f1ef3fe2ab8 Mon Sep 17 00:00:00 2001 From: xenua Date: Thu, 2 Dec 2021 13:05:52 +0100 Subject: [PATCH] add pyenv support --- runcoms/zprofile | 1 + runcoms/zshrc | 7 +++++++ 2 files changed, 8 insertions(+) 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