.zshrc 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. source ~/.profile
  2. source ~/.aliases
  3. setopt AUTO_CD
  4. export HISTFILE="$HOME/.zsh_history"
  5. export HISTSIZE="1000000"
  6. export SAVEHIST="1000000"
  7. ### Added by Zinit's installer
  8. if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then
  9. print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
  10. command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit"
  11. command git clone https://github.com/zdharma-continuum/zinit "$HOME/.zinit/bin" && \
  12. print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \
  13. print -P "%F{160}▓▒░ The clone has failed.%f%b"
  14. fi
  15. source "$HOME/.zinit/bin/zinit.zsh"
  16. autoload -Uz _zinit
  17. (( ${+_comps} )) && _comps[zinit]=_zinit
  18. # Load a few important annexes, without Turbo
  19. # (this is currently required for annexes)
  20. zinit light-mode for \
  21. zdharma-continuum/z-a-rust \
  22. zdharma-continuum/z-a-as-monitor \
  23. zdharma-continuum/z-a-patch-dl \
  24. zdharma-continuum/z-a-bin-gem-node
  25. ### End of Zinit's installer chunk
  26. # Autosuggestions & fast-syntax-highlighting
  27. zinit ice wait lucid atinit"zpcompinit; zpcdreplay"
  28. zinit light zdharma-continuum/fast-syntax-highlighting
  29. # zsh-autosuggestions
  30. zinit ice wait lucid atload"!_zsh_autosuggest_start"
  31. zinit load zsh-users/zsh-autosuggestions
  32. zinit light 'ytet5uy4/fzf-widgets'
  33. # Load OMZ Git library
  34. zinit snippet OMZL::git.zsh
  35. zinit cdclear -q # <- forget completions provided up to this moment
  36. setopt promptsubst
  37. # Load Git plugin from OMZ
  38. zinit snippet OMZP::git
  39. zinit ice pick"async.zsh" src"pure.zsh"
  40. zinit light sindresorhus/pure
  41. bindkey '^r' fzf-insert-history
  42. bindkey '^t' fzf-insert-files
  43. bindkey -v