.zshrc 1.6 KB

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