preztorc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. #
  2. # Sets Prezto options.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7. #
  8. # General
  9. #
  10. # Set case-sensitivity for completion, history lookup, etc.
  11. zstyle ':prezto:*:*' case-sensitive 'no'
  12. # Color output (auto set to 'no' on dumb terminals).
  13. zstyle ':prezto:*:*' color 'yes'
  14. # Set the Zsh modules to load (man zshmodules).
  15. # zstyle ':prezto:load' zmodule 'attr' 'stat'
  16. # Set the Zsh functions to load (man zshcontrib).
  17. # zstyle ':prezto:load' zfunction 'zargs' 'zmv'
  18. # Set the Prezto modules to load (browse modules).
  19. # The order matters.
  20. zstyle ':prezto:load' pmodule \
  21. 'archive' \
  22. 'completion' \
  23. 'directory' \
  24. 'dpkg' \
  25. 'editor' \
  26. 'environment' \
  27. 'terminal' \
  28. 'editor' \
  29. 'git' \
  30. 'gnu-utility' \
  31. 'history' \
  32. 'history-substring-search' \
  33. 'directory' \
  34. 'spectrum' \
  35. 'completion' \
  36. 'prompt' \
  37. 'rsync' \
  38. 'tmux' \
  39. 'syntax-highlighting' \
  40. 'utility'
  41. #
  42. # Editor
  43. #
  44. # Set the key mapping style to 'emacs' or 'vi'.
  45. zstyle ':prezto:module:editor' keymap 'emacs'
  46. # Auto convert .... to ../..
  47. # zstyle ':prezto:module:editor' dot-expansion 'yes'
  48. #
  49. # Git
  50. #
  51. # Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
  52. # zstyle ':prezto:module:git:status:ignore' submodules 'all'
  53. #
  54. # GNU Utility
  55. #
  56. # Set the command prefix on non-GNU systems.
  57. # zstyle ':prezto:module:gnu-utility' prefix 'g'
  58. #
  59. # History Substring Search
  60. #
  61. # Set the query found color.
  62. # zstyle ':prezto:module:history-substring-search:color' found ''
  63. # Set the query not found color.
  64. # zstyle ':prezto:module:history-substring-search:color' not-found ''
  65. # Set the search globbing flags.
  66. # zstyle ':prezto:module:history-substring-search' globbing-flags ''
  67. #
  68. # Pacman
  69. #
  70. # Set the Pacman frontend.
  71. # zstyle ':prezto:module:pacman' frontend 'yaourt'
  72. #
  73. # Prompt
  74. #
  75. # Set the prompt theme to load.
  76. # Setting it to 'random' loads a random theme.
  77. # Auto set to 'off' on dumb terminals.
  78. zstyle ':prezto:module:prompt' theme 'sorin'
  79. #
  80. # Screen
  81. #
  82. # Auto start a session when Zsh is launched.
  83. # zstyle ':prezto:module:screen' auto-start 'yes'
  84. #
  85. # SSH
  86. #
  87. # Set the SSH identities to load into the agent.
  88. # zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
  89. #
  90. # Syntax Highlighting
  91. #
  92. # Set syntax highlighters.
  93. # By default, only the main highlighter is enabled.
  94. zstyle ':prezto:module:syntax-highlighting' highlighters \
  95. 'main' \
  96. 'brackets' \
  97. 'pattern' \
  98. 'cursor'
  99. #
  100. # Set syntax highlighting styles.
  101. if [[ $TERM = *256color* || $TERM = *rxvt* ]]; then
  102. zstyle ':prezto:module:syntax-highlighting' styles \
  103. 'command' 'fg=148' \
  104. 'builtin' 'fg=38' \
  105. 'function' 'fg=139' \
  106. 'cursor' 'bg=231,fg=39'
  107. else
  108. zstyle ':prezto:module:syntax-highlighting' styles \
  109. 'command' 'fg=green' \
  110. 'builtin' 'fg=blue' \
  111. 'function' 'fg=cyan' \
  112. 'cursor' 'bg=white,fg=black'
  113. fi
  114. #
  115. # Terminal
  116. #
  117. # Auto set the tab and window titles.
  118. zstyle ':prezto:module:terminal' auto-title 'yes'
  119. #
  120. # Tmux
  121. #
  122. # Auto start a session when Zsh is launched.
  123. # zstyle ':prezto:module:tmux' auto-start 'yes'
  124. # vim: ft=zsh