|
| 1 | +# |
| 2 | +# Prezto options. |
| 3 | +# |
| 4 | + |
| 5 | +# General {{{ |
| 6 | + |
| 7 | +# Color output (auto set to 'no' on dumb terminals). |
| 8 | +zstyle ':prezto:*:*' color 'yes' |
| 9 | + |
| 10 | +# }}} |
| 11 | +# Modules {{{ |
| 12 | + |
| 13 | +# Set the Zsh modules to load (man zshmodules). |
| 14 | +# zstyle ':prezto:load' zmodule 'attr' 'stat' |
| 15 | + |
| 16 | +# Set the Zsh functions to load (man zshcontrib). |
| 17 | +# zstyle ':prezto:load' zfunction 'zargs' 'zmv' |
| 18 | + |
| 19 | +# Set the Prezto modules to load (browse modules). |
| 20 | +# The order matters. |
| 21 | +zstyle ':prezto:load' pmodule \ |
| 22 | + 'helper' \ |
| 23 | + 'environment' \ |
| 24 | + 'editor' \ |
| 25 | + 'history' \ |
| 26 | + 'directory' \ |
| 27 | + 'spectrum' \ |
| 28 | + 'utility' \ |
| 29 | + 'archive' \ |
| 30 | + 'history' \ |
| 31 | + 'git' \ |
| 32 | + 'syntax-highlighting' \ |
| 33 | + 'completion' \ |
| 34 | + 'fasd' \ |
| 35 | + 'tmux' \ |
| 36 | + 'prompt' |
| 37 | + |
| 38 | +# }}} |
| 39 | +# Editor {{{ |
| 40 | + |
| 41 | +# Set the key mapping style to 'emacs' or 'vi'. |
| 42 | +zstyle ':prezto:module:editor' key-bindings 'vi' |
| 43 | + |
| 44 | +# Auto convert .... to ../.. |
| 45 | +zstyle ':prezto:module:editor' dot-expansion 'yes' |
| 46 | + |
| 47 | +# }}} |
| 48 | +# Git {{{ |
| 49 | + |
| 50 | +# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'. |
| 51 | +# zstyle ':prezto:module:git:status:ignore' submodules 'all' |
| 52 | + |
| 53 | +# }}} |
| 54 | +# GNU Utility {{{ |
| 55 | + |
| 56 | +# Set the command prefix on non-GNU systems. |
| 57 | +# zstyle ':prezto:module:gnu-utility' prefix 'g' |
| 58 | + |
| 59 | +# }}} |
| 60 | +# History Substring Search {{{ |
| 61 | + |
| 62 | +# Set the query found color. |
| 63 | +# zstyle ':prezto:module:history-substring-search:color' found '' |
| 64 | + |
| 65 | +# Set the query not found color. |
| 66 | +# zstyle ':prezto:module:history-substring-search:color' not-found '' |
| 67 | + |
| 68 | +# Set the search globbing flags. |
| 69 | +# zstyle ':prezto:module:history-substring-search' globbing-flags '' |
| 70 | + |
| 71 | +# }}} |
| 72 | +# Pacman {{{ |
| 73 | + |
| 74 | +# Set the Pacman frontend. |
| 75 | +# zstyle ':prezto:module:pacman' frontend 'cower' |
| 76 | + |
| 77 | +# }}} |
| 78 | +# Prompt {{{ |
| 79 | + |
| 80 | +# Set the prompt theme to load. |
| 81 | +# Setting it to 'random' loads a random theme. |
| 82 | +# Auto set to 'off' on dumb terminals. |
| 83 | +zstyle ':prezto:module:prompt' theme 'jaagr' |
| 84 | + |
| 85 | +# }}} |
| 86 | +# SSH {{{ |
| 87 | + |
| 88 | +# Set the SSH identities to load into the agent. |
| 89 | +# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github' |
| 90 | + |
| 91 | +# }}} |
| 92 | +# Syntax Highlighting {{{ |
| 93 | + |
| 94 | +# Set syntax highlighters. |
| 95 | +# By default, only the main highlighter is enabled. |
| 96 | +zstyle ':prezto:module:syntax-highlighting' highlighters \ |
| 97 | + 'main' \ |
| 98 | + 'brackets' \ |
| 99 | + 'pattern' \ |
| 100 | + 'cursor' \ |
| 101 | + 'root' |
| 102 | + |
| 103 | +# Set syntax highlighting styles. |
| 104 | +# zstyle ':prezto:module:syntax-highlighting' styles \ |
| 105 | +# 'builtin' 'bg=blue' \ |
| 106 | +# 'command' 'bg=blue' \ |
| 107 | +# 'function' 'bg=blue' |
| 108 | + |
| 109 | +# }}} |
| 110 | +# Terminal {{{ |
| 111 | + |
| 112 | +# Auto set the tab and window titles. |
| 113 | +# zstyle ':prezto:module:terminal' auto-title 'yes' |
| 114 | + |
| 115 | +# Set the window title format. |
| 116 | +# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s' |
| 117 | + |
| 118 | +# Set the tab title format. |
| 119 | +# zstyle ':prezto:module:terminal:tab-title' format '%m: %s' |
| 120 | + |
| 121 | +# }}} |
| 122 | +# Tmux {{{ |
| 123 | + |
| 124 | +# Auto start a session when Zsh is launched in a local terminal. |
| 125 | +#zstyle ':prezto:module:tmux:auto-start' local 'yes' |
| 126 | + |
| 127 | +# Auto start a session when Zsh is launched in a SSH connection. |
| 128 | +zstyle ':prezto:module:tmux:auto-start' remote 'yes' |
| 129 | + |
| 130 | +# }}} |
| 131 | +# Fasd {{{ |
| 132 | + |
| 133 | +alias a='fasd -a' # any |
| 134 | +alias s='fasd -si' # show / search / select |
| 135 | +alias f='fasd -f' # file |
| 136 | +alias sd='fasd -sid' # interactive directory selection |
| 137 | +alias sf='fasd -sif' # interactive file selection |
| 138 | +function z { |
| 139 | + # bypass vim to avoid matching vimperator |
| 140 | + [[ "$1" == "vim" ]] && { |
| 141 | + cd "$LOCAL_ETC/vim" |
| 142 | + return |
| 143 | + } |
| 144 | + fasd_cd -d "$@" |
| 145 | +} |
| 146 | +alias zz='fasd_cd -d -i' # cd with interactive selection |
| 147 | +alias v='fasd -f -e vim' |
| 148 | +alias vv='fasd -f -i -e vim' |
| 149 | + |
| 150 | +# }}} |
| 151 | + |
| 152 | +# vim:ft=zsh fdm=marker |
0 commit comments