Only pyenv and stuff if exist

This commit is contained in:
Elizabeth Hunt 2023-03-12 20:17:20 -06:00
parent f862b976dd
commit 4c0e0e2703

16
.zshrc
View File

@ -13,8 +13,6 @@ then
printf "$(cat $logo)\n\n" printf "$(cat $logo)\n\n"
fi fi
. /opt/asdf-vm/asdf.sh
# Alt+b stops at forwardslashes # Alt+b stops at forwardslashes
backward-kill-dir () { backward-kill-dir () {
local WORDCHARS=${WORDCHARS/\/} local WORDCHARS=${WORDCHARS/\/}
@ -34,13 +32,21 @@ HISTSIZE=10000
SAVEHIST=10000 SAVEHIST=10000
setopt appendhistory setopt appendhistory
# asdf
[ -f /opt/asdf-vm/asdf.sh ] && . /opt/asdf-vm-asdf.sh
# thefuck # thefuck
eval $(thefuck --alias) eval $(thefuck --alias)
# Pyenv # Pyenv
export PYENV_ROOT="$HOME/.pyenv" if [ -d "$HOME/.pyenv" ]
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" then
eval "$(pyenv init -)" export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
# ghcup-env # ghcup-env
[ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env" [ -f "$HOME/.ghcup/env" ] && source "$HOME/.ghcup/env"