This commit is contained in:
Anthony Cicchetti 2023-02-22 09:49:54 -05:00
parent f5a4034288
commit 1709facc39

View file

@ -44,6 +44,9 @@ zle -N down-line-or-beginning-search
[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
_command-exists() {
[[ -x "$(command -v $1)" ]] && return true || return false
}
export COMPLETION_WAITING_DOTS="true"
export VISUAL='nvim'
@ -90,8 +93,7 @@ if [[ -d ~/.cargo/bin ]]; then
path=($path $HOME/.cargo/bin)
fi
if [[ $(whence -p starship 2> /dev/null) ]]; then
if [[ $(_command-exists starship) -eq 0 ]]; then
znap eval starship 'starship init zsh --print-full-init'
znap prompt starship
else
@ -149,7 +151,7 @@ if [[ -d $HOME/.anyenv ]]; then
fi
fi
if [[ $(whence -p mcfly 2> /dev/null) ]]; then
if [[ $(_command-exists mcfly) -eq 0 ]]; then
znap eval mcfly 'mcfly init zsh'
export MCFLY_KEY_SCHEME=vim
export MCFLY_FUZZY=true
@ -160,6 +162,10 @@ fi
path+=($(yarn global bin))
export PATH
if [[ $(_command-exists pdm) -eq 0 ]]; then
eval "$(pdm --pep582 zsh)"
fi
##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" ]] && znap eval sdkman-init "cat $HOME/.sdkman/bin/sdkman-init.sh # $SDKMAN_VERSION"