Skip to content

Commit

Permalink
Run pyenv init during init of interactive shells
Browse files Browse the repository at this point in the history
  • Loading branch information
brainplot committed Jan 5, 2025
1 parent c81a333 commit 9746439
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,8 @@ do
complete -C "$hashicorp_tool_full_path" "$hashicorp_tool"
done

# Pyenv
command -v pyenv >/dev/null && eval "$(pyenv init - bash)"

unset hashicorp_tool
unset hashicorp_tool_full_path
1 change: 0 additions & 1 deletion .profile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ esac
# pyenv
export PYENV_ROOT="$XDG_DATA_HOME/pyenv"
PATH="$PYENV_ROOT/bin:$PATH"
command -v pyenv >/dev/null && eval "$(pyenv init -)"
# user_site="$(python3 -m site --user-base)" && PATH="$user_site/bin:$PATH"

# Set rustup location
Expand Down
3 changes: 3 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@ prompt pure
source_plugin() { [ -e "$XDG_DATA_HOME"/zsh/plugins/"$1" ] && . "$XDG_DATA_HOME"/zsh/plugins/"$1" ; }
source_plugin zsh-z/zsh-z.plugin.zsh
unfunction source_plugin

# Pyenv
command -v pyenv >/dev/null && eval "$(pyenv init - zsh)"

0 comments on commit 9746439

Please sign in to comment.