.zshrc 1013 B

12345678910111213141516171819202122232425262728293031323334
  1. export ZPLUG_HOME="$HOME/.zsh/zplug"
  2. source "$ZPLUG_HOME/init.zsh"
  3. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
  4. # Initialization code that may require console input (password prompts, [y/n]
  5. # confirmations, etc.) must go above this block; everything else may go below.
  6. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  7. source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  8. fi
  9. zplug romkatv/powerlevel10k, as:theme, depth:1, if:"command -v gitstatusd"
  10. zplug t413/zsh-background-notify
  11. zplug rimraf/k
  12. zplug tarrasch/zsh-bd
  13. zplug zsh-users/zsh-syntax-highlighting, defer:2
  14. zplug "${HOME}/.zsh", from:local, defer:1
  15. zplug "${HOME}/.zsh/fzf", from:local, if:"command -v fzf"
  16. if ! zplug check --verbose; then
  17. printf "Install? [y/N]: "
  18. if read -q; then
  19. echo; zplug install
  20. fi
  21. fi
  22. zplug load
  23. autoload -Uz compinit
  24. if [[ -n ~/.zcompdump(#qN.mh+24) ]]; then
  25. compinit
  26. touch ~/.zcompdump
  27. else
  28. compinit -C
  29. fi