mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 11:40:37 +00:00
fix(zshrc): change export of PYENV_ROOT to use absolute path
feat(zshrc): add support for pyenv virtualenv init refactor(zshrc): move pyenv initialization to the end of the file
This commit is contained in:
21
.zshrc
21
.zshrc
@@ -163,11 +163,17 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Curl Setup
|
# Curl Setup
|
||||||
|
if [ -d "/opt/homebrew/opt/curl" ] ; then
|
||||||
export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
|
export LDFLAGS="-L/opt/homebrew/opt/curl/lib"
|
||||||
export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
|
export CPPFLAGS="-I/opt/homebrew/opt/curl/include"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Android setup
|
||||||
|
if [ -d "$HOME/Library/Android/sdk" ] ; then
|
||||||
export ANDROID_HOME=$HOME/Library/Android/sdk
|
export ANDROID_HOME=$HOME/Library/Android/sdk
|
||||||
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "$HOME/.local/bin" ] ; then
|
if [ -d "$HOME/.local/bin" ] ; then
|
||||||
PATH="$HOME/.local/bin:$PATH"
|
PATH="$HOME/.local/bin:$PATH"
|
||||||
@@ -231,12 +237,10 @@ _fzf_complete_tmn() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Setup Flutter
|
# Setup Flutter
|
||||||
|
|
||||||
|
|
||||||
export PATH="$HOME/.pub-cache/bin:$PATH"
|
export PATH="$HOME/.pub-cache/bin:$PATH"
|
||||||
|
|
||||||
# Setup FZF
|
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
||||||
|
|
||||||
|
|
||||||
export GEM_HOME=$HOME/.gem
|
export GEM_HOME=$HOME/.gem
|
||||||
export PATH=$GEM_HOME/bin:$PATH
|
export PATH=$GEM_HOME/bin:$PATH
|
||||||
export PATH=$HOME/flutter/bin:$PATH
|
export PATH=$HOME/flutter/bin:$PATH
|
||||||
@@ -259,11 +263,6 @@ PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
|
|||||||
[[ -f ~/.fzf.zsh ]] && source <(fzf --zsh)
|
[[ -f ~/.fzf.zsh ]] && source <(fzf --zsh)
|
||||||
## [/Completion]
|
## [/Completion]
|
||||||
|
|
||||||
|
|
||||||
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
|
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
|
||||||
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|
|
||||||
|
|
||||||
# Init Starship
|
# Init Starship
|
||||||
export STARSHIP_CONFIG="$HOME/.config/starship.toml"
|
export STARSHIP_CONFIG="$HOME/.config/starship.toml"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
@@ -273,10 +272,12 @@ fpath+=~/.zfunc
|
|||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
# Pyenv Virtualenv init
|
# Pyenv Virtualenv init
|
||||||
export PYENV_ROOT="$HOME/.pyenv" >> ~/.zshrc
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
eval "$(pyenv virtualenv-init -)"
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
|
||||||
|
if [ -d "/opt/homebrew/share/zsh-syntax-highlighting" ]; then
|
||||||
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user