Compare commits

..

6 Commits

  1. 9
      .zshrc
  2. 4
      zsh/env.zsh

9
.zshrc

@ -54,11 +54,13 @@ zinit load agkozak/zsh-z
# https://github.com/docker/cli/blob/master/contrib/completion/zsh/_docker \
# https://github.com/docker/compose/blob/master/contrib/completion/zsh/_docker-compose
# 语法高亮
zinit ice lucid wait='0' atinit='zpcompinit'
zinit light zdharma-continuum/fast-syntax-highlighting
# 自动建议
zinit ice lucid wait="0" atload='_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions
@ -124,6 +126,13 @@ fi
fpath=(${ASDF_DIR}/completions $fpath)
autoload -Uz compinit
# Load kubectl and helm completions
zinit ice lucid wait='1' has"kubectl" atclone"kubectl completion zsh > $ZINIT[COMPLETIONS_DIR]/_kubectl"
zinit snippet OMZ::plugins/kubectl/kubectl.plugin.zsh
zinit ice lucid wait='1' has"helm" atclone"helm completion zsh > $ZINIT[COMPLETIONS_DIR]/_helm"
zinit snippet OMZ::plugins/helm/helm.plugin.zsh
# if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
# compinit;
# else

4
zsh/env.zsh

@ -216,4 +216,6 @@ export PATH="$HOME/.fly/bin:$PATH"
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib/
export CPATH=$CPATH:/opt/homebrew/include/
eval "$(mise activate zsh)"
if command -v mise &> /dev/null; then
eval "$(mise activate zsh)"
fi

Loading…
Cancel
Save