pdm
This commit is contained in:
parent
f5a4034288
commit
1709facc39
1 changed files with 9 additions and 3 deletions
12
zsh/zshrc
12
zsh/zshrc
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue