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