Peter's zsh configuration files
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

zshrc 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!zsh
  2. # keep some arrays unique
  3. typeset -U fpath
  4. typeset -U cdpath
  5. typeset -U manpath
  6. # some variables to export
  7. export LESS="-SRiJMW"
  8. export PAGER=less
  9. # add our function path
  10. functions_directory=@prefix@zsh/func
  11. widgets_directory=@prefix@zsh/wids
  12. fpath=($functions_directory $widgets_directory $fpath)
  13. # clober stuff
  14. setopt no_clobber
  15. setopt hist_allow_clobber
  16. # other options
  17. setopt alwaystoend
  18. setopt auto_cd
  19. setopt auto_list
  20. setopt completeinword
  21. setopt correct
  22. setopt magic_equal_subst
  23. setopt mark_dirs
  24. setopt multios
  25. setopt no_auto_remove_slash
  26. setopt no_beep
  27. setopt no_correct_all
  28. setopt rematch_pcre
  29. # job control
  30. setopt no_hup
  31. setopt no_check_jobs
  32. # autoload my functions
  33. autoload -U ${fpath[1]}/*(:t)
  34. # load some useful modules
  35. zmodload zsh/datetime
  36. # bring in other files
  37. source @prefix@zsh/lib/bindings.zsh
  38. source @prefix@zsh/lib/aliases.zsh
  39. source @prefix@zsh/lib/hosts.zsh
  40. source @prefix@zsh/lib/completion.zsh
  41. source @prefix@zsh/lib/directories.zsh
  42. source @prefix@zsh/lib/history.zsh
  43. source @prefix@zsh/lib/syntax.zsh
  44. source @prefix@zsh/lib/prompt.zsh
  45. if which direnv > /dev/null 2>&1; then
  46. eval "$(direnv hook zsh)"
  47. fi