Browse Source

Fix pyenv warning according to https://github.com/pyenv/pyenv/issues/1906

ubuntu_ci
Ein Verne 4 years ago
parent
commit
55e5728379
  1. 16
      zsh/env.zsh

16
zsh/env.zsh

@ -22,8 +22,10 @@ export PATH="/usr/local/sbin:$PATH"
if [[ -d ~/.pyenv ]]; then if [[ -d ~/.pyenv ]]; then
# pyenv # pyenv
export PATH="$HOME/.pyenv/bin:$PATH" export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)" if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv virtualenv-init -)" eval "$(pyenv init --path)"
eval "$(pyenv virtualenv-init -)"
fi
fi fi
# if [[ -d ~/.jenv ]]; then # if [[ -d ~/.jenv ]]; then
@ -41,7 +43,7 @@ if [[ -d "$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/" ]]; then
export JAVA_HOME=$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/ export JAVA_HOME=$HOME/.asdf/installs/java/adoptopenjdk-8.0.265+1/
export PATH=$PATH:$JAVA_HOME/bin/ export PATH=$PATH:$JAVA_HOME/bin/
fi fi
. ~/.asdf/plugins/java/set-java-home.zsh # . ~/.asdf/plugins/java/set-java-home.zsh
# if [[ -d "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/" ]]; then # if [[ -d "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/" ]]; then
# export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/ # export JAVA_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/
# export PATH=$PATH:$JAVA_HOME/bin/ # export PATH=$PATH:$JAVA_HOME/bin/
@ -140,4 +142,12 @@ if [[ -d $HOME/.cargo ]]; then
export PATH="$PATH:$HOME/.cargo/bin" export PATH="$PATH:$HOME/.cargo/bin"
fi fi
if [[ -d /usr/lib/dart/bin ]]; then
export PATH="$PATH:/usr/lib/dart/bin"
fi
if [[ -d $HOME/.asdf/installs/rust/1.51.0/bin ]]; then
export PATH="$PATH:$HOME/.asdf/installs/rust/1.51.0/bin"
fi
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH" export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

Loading…
Cancel
Save