From 4f3e894235cc65088fab3e88a51e3ac600101736 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 22 Jul 2023 22:10:21 -0300 Subject: pyenv --- .zshrc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index b7a3e7e..f953594 100644 --- a/.zshrc +++ b/.zshrc @@ -24,6 +24,11 @@ export GPG_TTY=$(tty) eval "$(/opt/homebrew/bin/brew shellenv)" +if [[ -z DEVICE_HAS_PYENV ]]; then + # https://github.com/pyenv/pyenv#homebrew-in-macos + alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew' +fi + # -- Node Version Manager -- export NVM_DIR="$HOME/.nvm" @@ -35,4 +40,10 @@ export NVM_DIR="$HOME/.nvm" path+=("$HOME/Library/Python/3.9/bin") path+=("/Applications/Sublime Text.app/Contents/SharedSupport/bin") +# -- Python (pyenv) -- + +if [[ -z DEVICE_HAS_PYENV ]]; then + eval "$(pyenv init -)" +fi + export PATH -- cgit 1.3.0-6-gf8a5