diff --git a/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_completions b/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_completions index 1405273..2f6a128 100644 --- a/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_completions +++ b/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_completions @@ -21,5 +21,6 @@ command -v helm &> /dev/null && source <(helm completion zsh) || true command -v noseyparker &> /dev/null && source <(noseyparker shell-completions --shell zsh) || true [ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion" +[ -s "$HOME/.pyenv/completions/pyenv.zsh" ] && source "$HOME/.pyenv/completions/pyenv.zsh" autoload -U compinit && compinit diff --git a/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_exports b/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_exports index 5e7f6ed..1d72261 100644 --- a/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_exports +++ b/collections/ansible_collections/nullified/infrastructure/roles/common/templates/home/.zsh_exports @@ -22,6 +22,13 @@ export NVM_DIR="$HOME/.nvm" [ -d "${HOME}/.local/share/gems/ruby/${RUBY_VERSION}" ] && export GEM_DIR="${HOME}/.local/share/gems/ruby/${RUBY_VERSION}" [ -d "${HOME}/.cargo/env" ] && source "${HOME}/.cargo/env" +export PYENV_ROOT="$HOME/.pyenv" +if [[ -d $PYENV_ROOT/bin ]]; then + export PATH="$PYENV_ROOT/bin:$PATH" + eval "$(pyenv init - bash)" + eval "$(pyenv virtualenv-init -)" +fi + # Path export PATH="${PATH}:${HOME}/.local/bin" [ -d "${HOME}/.nvm/current/bin" ] && export PATH="${PATH}:${HOME}/.nvm/current/bin"