Guard jenv and pyenv initialization
This commit is contained in:
parent
ebe804da8b
commit
e6721e42b2
1 changed files with 26 additions and 19 deletions
45
home/.zshrc
45
home/.zshrc
|
@ -25,10 +25,27 @@ export XKB_DEFAULT_OPTIONS="caps:escape"
|
||||||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||||
export XDEB_PKGROOT=${HOME}/.config/xdeb
|
export XDEB_PKGROOT=${HOME}/.config/xdeb
|
||||||
|
|
||||||
# Add cuda to path
|
# Custom path additions
|
||||||
export PATH="$PATH:/usr/local/cuda-12.8/bin"
|
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
|
||||||
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
||||||
|
|
||||||
|
#==============================================================================
|
||||||
|
# OS-Specific Configuration
|
||||||
|
#==============================================================================
|
||||||
|
|
||||||
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
export PATH="$PATH:/opt/homebrew/bin"
|
||||||
|
alias ls="gls --classify --group-directories-first --color"
|
||||||
|
alias gemini="(source ~/.gemini_project && gemini)"
|
||||||
|
export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/"
|
||||||
|
# I only start tmux by default on Mac because of dwm+swallow patch
|
||||||
|
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
|
||||||
|
tmux attach -t dev || tmux new -s dev
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
alias ls="ls --classify --group-directories-first --color"
|
||||||
|
fi
|
||||||
|
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
# Aliases
|
# Aliases
|
||||||
#==============================================================================
|
#==============================================================================
|
||||||
|
@ -70,12 +87,18 @@ export NVM_DIR="$HOME/.nvm"
|
||||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
# pyenv
|
# pyenv
|
||||||
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
|
if command -v pyenv >/dev/null 2>&1; then
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
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 - zsh)"
|
eval "$(pyenv init - zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# jenv
|
||||||
|
if command -v jenv >/dev/null 2>&1; then
|
||||||
|
export PATH="$HOME/.jenv/bin:$PATH"
|
||||||
|
eval "$(jenv init -)"
|
||||||
|
fi
|
||||||
|
|
||||||
# starship
|
# starship
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
@ -96,19 +119,3 @@ bindkey -v
|
||||||
bindkey '^[[A' history-substring-search-up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
|
||||||
#==============================================================================
|
|
||||||
# OS-Specific Configuration
|
|
||||||
#==============================================================================
|
|
||||||
|
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
|
||||||
export PATH="$PATH:/opt/homebrew/bin"
|
|
||||||
alias ls="gls --classify --group-directories-first --color"
|
|
||||||
alias gemini="(source ~/.gemini_project && gemini)"
|
|
||||||
export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/"
|
|
||||||
# I only start tmux by default on Mac because of dwm+swallow patch
|
|
||||||
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
|
|
||||||
tmux attach -t dev || tmux new -s dev
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
alias ls="ls --classify --group-directories-first --color"
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue