Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.27 KB | None | 0 0
  1. #
  2. # Executes commands at login pre-zshrc.
  3. #
  4. # Authors:
  5. # Sorin Ionescu <sorin.ionescu@gmail.com>
  6. #
  7.  
  8. #
  9. # Browser
  10. #
  11.  
  12. if [[ "$OSTYPE" == darwin* ]]; then
  13. export BROWSER='open'
  14. fi
  15.  
  16. #
  17. # Editors
  18. #
  19.  
  20. export EDITOR='nano'
  21. export VISUAL='nano'
  22. export PAGER='less'
  23.  
  24. #
  25. # Language
  26. #
  27.  
  28. if [[ -z "$LANG" ]]; then
  29. export LANG='en_US.UTF-8'
  30. fi
  31.  
  32. #
  33. # Paths
  34. #
  35.  
  36. # Ensure path arrays do not contain duplicates.
  37. typeset -gU cdpath fpath mailpath path
  38.  
  39. # Set the the list of directories that cd searches.
  40. # cdpath=(
  41. # $cdpath
  42. # )
  43.  
  44. # Set the list of directories that Zsh searches for programs.
  45. path=(
  46. /usr/local/{bin,sbin}
  47. $path
  48. )
  49.  
  50. #
  51. # Less
  52. #
  53.  
  54. # Set the default Less options.
  55. # Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
  56. # Remove -X and -F (exit if the content fits on one screen) to enable it.
  57. export LESS='-F -g -i -M -R -S -w -X -z-4'
  58.  
  59. # Set the Less input preprocessor.
  60. # Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
  61. if (( $#commands[(i)lesspipe(|.sh)] )); then
  62. export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
  63. fi
  64.  
  65. #
  66. # Executes commands at the start of an interactive session.
  67. #
  68. # Authors:
  69. # Sorin Ionescu <sorin.ionescu@gmail.com>
  70. #
  71.  
  72. # Source Prezto.
  73. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
  74. source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
  75. fi
  76.  
  77. # Customize to your needs...
  78.  
  79. #
  80. # Sets Prezto options.
  81. #
  82. # Authors:
  83. # Sorin Ionescu <sorin.ionescu@gmail.com>
  84. #
  85.  
  86. #
  87. # General
  88. #
  89.  
  90. # Set case-sensitivity for completion, history lookup, etc.
  91. # zstyle ':prezto:*:*' case-sensitive 'yes'
  92.  
  93. # Color output (auto set to 'no' on dumb terminals).
  94. zstyle ':prezto:*:*' color 'yes'
  95.  
  96. # Set the Zsh modules to load (man zshmodules).
  97. # zstyle ':prezto:load' zmodule 'attr' 'stat'
  98.  
  99. # Set the Zsh functions to load (man zshcontrib).
  100. # zstyle ':prezto:load' zfunction 'zargs' 'zmv'
  101.  
  102. # Set the Prezto modules to load (browse modules).
  103. # The order matters.
  104. zstyle ':prezto:load' pmodule
  105. 'environment'
  106. 'terminal'
  107. 'editor'
  108. 'history'
  109. 'directory'
  110. 'spectrum'
  111. 'utility'
  112. 'completion'
  113. 'prompt'
  114. 'syntax-highlighting'
  115. 'tmux'
  116. 'autosuggestions'
  117.  
  118. #
  119. # Autosuggestions
  120. #
  121.  
  122. # Set the query found color.
  123. zstyle ':prezto:module:autosuggestions' color 'yes'
  124. # zstyle ':prezto:module:autosuggestions:color' found ''
  125.  
  126. #
  127. # Completions
  128. #
  129.  
  130. # Set the entries to ignore in static */etc/hosts* for host completion.
  131. # zstyle ':prezto:module:completion:*:hosts' etc-host-ignores
  132. # '0.0.0.0' '127.0.0.1'
  133.  
  134. #
  135. # Editor
  136. #
  137.  
  138. # Set the key mapping style to 'emacs' or 'vi'.
  139. zstyle ':prezto:module:editor' key-bindings 'emacs'
  140.  
  141. # Auto convert .... to ../..
  142. # zstyle ':prezto:module:editor' dot-expansion 'yes'
  143.  
  144. # Allow the zsh prompt context to be shown.
  145. #zstyle ':prezto:module:editor' ps-context 'yes'
  146.  
  147. #
  148. # Git
  149. #
  150.  
  151. # Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
  152. # zstyle ':prezto:module:git:status:ignore' submodules 'all'
  153.  
  154. #
  155. # GNU Utility
  156. #
  157.  
  158. # Set the command prefix on non-GNU systems.
  159. # zstyle ':prezto:module:gnu-utility' prefix 'g'
  160.  
  161. #
  162. # History Substring Search
  163. #
  164.  
  165. # Set the query found color.
  166. # zstyle ':prezto:module:history-substring-search:color' found ''
  167.  
  168. # Set the query not found color.
  169. # zstyle ':prezto:module:history-substring-search:color' not-found ''
  170.  
  171. # Set the search globbing flags.
  172. # zstyle ':prezto:module:history-substring-search' globbing-flags ''
  173.  
  174. #
  175. # OS X
  176. #
  177.  
  178. # Set the keyword used by `mand` to open man pages in Dash.app
  179. # zstyle ':prezto:module:osx:man' dash-keyword 'manpages'
  180.  
  181. #
  182. # Pacman
  183. #
  184.  
  185. # Set the Pacman frontend.
  186. # zstyle ':prezto:module:pacman' frontend 'yaourt'
  187.  
  188. #
  189. # Prompt
  190. #
  191.  
  192. # Set the prompt theme to load.
  193. # Setting it to 'random' loads a random theme.
  194. # Auto set to 'off' on dumb terminals.
  195. zstyle ':prezto:module:prompt' theme 'pure'
  196.  
  197. # Set the working directory prompt display length.
  198. # By default, it is set to 'short'. Set it to 'long' (without '~' expansion)
  199. # for longer or 'full' (with '~' expansion) for even longer prompt display.
  200. # zstyle ':prezto:module:prompt' pwd-length 'short'
  201.  
  202. #
  203. # Ruby
  204. #
  205.  
  206. # Auto switch the Ruby version on directory change.
  207. # zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
  208.  
  209. #
  210. # Python
  211. #
  212.  
  213. # Auto switch the Python virtualenv on directory change.
  214. zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
  215.  
  216. # Automatically initialize virtualenvwrapper if pre-requisites are met.
  217. zstyle ':prezto:module:python:virtualenv' initialize 'yes'
  218.  
  219. #
  220. # Screen
  221. #
  222.  
  223. # Auto start a session when Zsh is launched in a local terminal.
  224. # zstyle ':prezto:module:screen:auto-start' local 'yes'
  225.  
  226. # Auto start a session when Zsh is launched in a SSH connection.
  227. # zstyle ':prezto:module:screen:auto-start' remote 'yes'
  228.  
  229. #
  230. # SSH
  231. #
  232.  
  233. # Set the SSH identities to load into the agent.
  234. # zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
  235.  
  236. #
  237. # Syntax Highlighting
  238. #
  239.  
  240. # Set syntax highlighters.
  241. # By default, only the main highlighter is enabled.
  242. # zstyle ':prezto:module:syntax-highlighting' highlighters
  243. # 'main'
  244. # 'brackets'
  245. # 'pattern'
  246. # 'line'
  247. # 'cursor'
  248. # 'root'
  249. #
  250. # Set syntax highlighting styles.
  251. # zstyle ':prezto:module:syntax-highlighting' styles
  252. # 'builtin' 'bg=blue'
  253. # 'command' 'bg=blue'
  254. # 'function' 'bg=blue'
  255. #
  256. # Set syntax pattern styles.
  257. # zstyle ':prezto:module:syntax-highlighting' pattern
  258. # 'rm*-rf*' 'fg=white,bold,bg=red'
  259.  
  260. #
  261. # Terminal
  262. #
  263.  
  264. # Auto set the tab and window titles.
  265. # zstyle ':prezto:module:terminal' auto-title 'yes'
  266.  
  267. # Set the window title format.
  268. # zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
  269.  
  270. # Set the tab title format.
  271. # zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
  272.  
  273. # Set the terminal multiplexer title format.
  274. # zstyle ':prezto:module:terminal:multiplexer-title' format '%s'
  275.  
  276. #
  277. # Tmux
  278. #
  279.  
  280. # Auto start a session when Zsh is launched in a local terminal.
  281. # zstyle ':prezto:module:tmux:auto-start' local 'yes'
  282.  
  283. # Auto start a session when Zsh is launched in a SSH connection.
  284. # zstyle ':prezto:module:tmux:auto-start' remote 'yes'
  285.  
  286. # Integrate with iTerm2.
  287. # zstyle ':prezto:module:tmux:iterm' integrate 'yes'
  288.  
  289. # Set the default session name:
  290. # zstyle ':prezto:module:tmux:session' name 'YOUR DEFAULT SESSION NAME'
  291.  
  292. #
  293. # Utility
  294. #
  295.  
  296. # Enabled safe options. This aliases cp, ln, mv and rm so that they prompt
  297. # before deleting or overwriting files. Set to 'no' to disable this safer
  298. # behavior.
  299. # zstyle ':prezto:module:utility' safe-ops 'yes'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement