.zshrc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # Zsh configuration file
  3. # Since 2006, kolter <kolter@openics.org>
  4. #
  5. # This file is distributed in the hope that it will be useful,
  6. # but WITHOUT ANY WARRANTY
  7. #
  8. export ZSHDOTDIR=~/.zsh
  9. if [[ ! -f "${HOME}/.zcomet/bin/zcomet.zsh" ]]; then
  10. command git clone https://github.com/agkozak/zcomet.git "${HOME}/.zcomet/bin"
  11. fi
  12. source "${HOME}/.zcomet/bin/zcomet.zsh"
  13. zcomet load sorin-ionescu/prezto modules/directory
  14. zcomet load sorin-ionescu/prezto modules/dpkg
  15. zcomet load sorin-ionescu/prezto modules/editor
  16. zcomet load sorin-ionescu/prezto modules/environment
  17. zcomet load sorin-ionescu/prezto modules/terminal
  18. zcomet load sorin-ionescu/prezto modules/history
  19. zcomet load sorin-ionescu/prezto modules/spectrum
  20. zcomet load sorin-ionescu/prezto modules/completion
  21. zcomet load zsh-users/zsh-syntax-highlighting
  22. zcomet load zsh-users/zsh-history-substring-search
  23. zcomet load zsh-users/zsh-autosuggestions
  24. zcomet load spaceship-prompt/spaceship-prompt
  25. if [[ -d "${ZSHDOTDIR}/config" ]]; then
  26. zcomet load "${ZSHDOTDIR}"
  27. fi
  28. if [ "${UID}" = 0 ] && [ -n "${SUDO_UID}" ] ; then
  29. zstyle ':zcomet:compinit' arguments "-u"
  30. fi
  31. zcomet compinit