2012-09-03 20:38:18 +00:00
|
|
|
#
|
|
|
|
# Sets Prezto options.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# General
|
|
|
|
#
|
2012-09-03 20:38:18 +00:00
|
|
|
|
|
|
|
# Set case-sensitivity for completion, history lookup, etc.
|
2013-08-28 02:29:20 +00:00
|
|
|
# zstyle ':prezto:*:*' case-sensitive 'yes'
|
2012-09-03 20:38:18 +00:00
|
|
|
|
|
|
|
# Color output (auto set to 'no' on dumb terminals).
|
|
|
|
zstyle ':prezto:*:*' color 'yes'
|
|
|
|
|
|
|
|
# Set the Zsh modules to load (man zshmodules).
|
|
|
|
# zstyle ':prezto:load' zmodule 'attr' 'stat'
|
|
|
|
|
|
|
|
# Set the Zsh functions to load (man zshcontrib).
|
|
|
|
# zstyle ':prezto:load' zfunction 'zargs' 'zmv'
|
|
|
|
|
|
|
|
# Set the Prezto modules to load (browse modules).
|
|
|
|
# The order matters.
|
|
|
|
zstyle ':prezto:load' pmodule \
|
|
|
|
'environment' \
|
|
|
|
'terminal' \
|
|
|
|
'editor' \
|
|
|
|
'history' \
|
|
|
|
'directory' \
|
|
|
|
'spectrum' \
|
|
|
|
'utility' \
|
|
|
|
'completion' \
|
|
|
|
'prompt'
|
|
|
|
|
2016-03-02 21:31:30 +00:00
|
|
|
#
|
|
|
|
# Autosuggestions
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the query found color.
|
|
|
|
# zstyle ':prezto:module:autosuggestions:color' found ''
|
|
|
|
|
2017-07-26 20:16:40 +00:00
|
|
|
#
|
|
|
|
# Completions
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the entries to ignore in static */etc/hosts* for host completion.
|
|
|
|
# zstyle ':prezto:module:completion:*:hosts' etc-host-ignores \
|
|
|
|
# '0.0.0.0' '127.0.0.1'
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# Editor
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the key mapping style to 'emacs' or 'vi'.
|
2013-05-18 23:23:03 +00:00
|
|
|
zstyle ':prezto:module:editor' key-bindings 'emacs'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
|
|
|
# Auto convert .... to ../..
|
|
|
|
# zstyle ':prezto:module:editor' dot-expansion 'yes'
|
|
|
|
|
2017-04-02 19:09:58 +00:00
|
|
|
# Allow the zsh prompt context to be shown.
|
|
|
|
#zstyle ':prezto:module:editor' ps-context 'yes'
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# Git
|
|
|
|
#
|
|
|
|
|
|
|
|
# Ignore submodules when they are 'dirty', 'untracked', 'all', or 'none'.
|
2012-10-02 01:20:59 +00:00
|
|
|
# zstyle ':prezto:module:git:status:ignore' submodules 'all'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# GNU Utility
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the command prefix on non-GNU systems.
|
|
|
|
# zstyle ':prezto:module:gnu-utility' prefix 'g'
|
|
|
|
|
2012-12-23 21:54:43 +00:00
|
|
|
#
|
|
|
|
# History Substring Search
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the query found color.
|
|
|
|
# zstyle ':prezto:module:history-substring-search:color' found ''
|
|
|
|
|
|
|
|
# Set the query not found color.
|
|
|
|
# zstyle ':prezto:module:history-substring-search:color' not-found ''
|
|
|
|
|
|
|
|
# Set the search globbing flags.
|
|
|
|
# zstyle ':prezto:module:history-substring-search' globbing-flags ''
|
|
|
|
|
2017-07-22 22:43:39 +00:00
|
|
|
#
|
|
|
|
# OS X
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the keyword used by `mand` to open man pages in Dash.app
|
|
|
|
# zstyle ':prezto:module:osx:man' dash-keyword 'manpages'
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# Pacman
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set the Pacman frontend.
|
|
|
|
# zstyle ':prezto:module:pacman' frontend 'yaourt'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Prompt
|
|
|
|
#
|
|
|
|
|
2012-09-03 20:38:18 +00:00
|
|
|
# Set the prompt theme to load.
|
|
|
|
# Setting it to 'random' loads a random theme.
|
|
|
|
# Auto set to 'off' on dumb terminals.
|
|
|
|
zstyle ':prezto:module:prompt' theme 'sorin'
|
|
|
|
|
2017-07-21 00:08:19 +00:00
|
|
|
# Set the working directory prompt display length.
|
|
|
|
# By default, it is set to 'short'. Set it to 'long' (without '~' expansion)
|
|
|
|
# for longer or 'full' (with '~' expansion) for even longer prompt display.
|
2017-04-27 17:25:42 +00:00
|
|
|
# zstyle ':prezto:module:prompt' pwd-length 'short'
|
2017-04-26 16:07:34 +00:00
|
|
|
|
2017-09-06 18:18:09 +00:00
|
|
|
# Set the prompt to display the return code along with an indicator for non-zero
|
|
|
|
# return codes. This is not supported by all prompts.
|
|
|
|
# zstyle ':prezto:module:prompt' show-return-val 'yes'
|
|
|
|
|
2014-02-02 04:37:29 +00:00
|
|
|
#
|
|
|
|
# Ruby
|
|
|
|
#
|
|
|
|
|
|
|
|
# Auto switch the Ruby version on directory change.
|
|
|
|
# zstyle ':prezto:module:ruby:chruby' auto-switch 'yes'
|
|
|
|
|
2017-05-31 00:26:18 +00:00
|
|
|
#
|
|
|
|
# Python
|
|
|
|
#
|
|
|
|
|
|
|
|
# Auto switch the Python virtualenv on directory change.
|
|
|
|
# zstyle ':prezto:module:python:virtualenv' auto-switch 'yes'
|
|
|
|
|
2017-07-25 00:34:11 +00:00
|
|
|
# Automatically initialize virtualenvwrapper if pre-requisites are met.
|
|
|
|
# zstyle ':prezto:module:python:virtualenv' initialize 'yes'
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# Screen
|
|
|
|
#
|
|
|
|
|
2013-01-24 13:54:55 +00:00
|
|
|
# Auto start a session when Zsh is launched in a local terminal.
|
|
|
|
# zstyle ':prezto:module:screen:auto-start' local 'yes'
|
|
|
|
|
|
|
|
# Auto start a session when Zsh is launched in a SSH connection.
|
|
|
|
# zstyle ':prezto:module:screen:auto-start' remote 'yes'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
|
|
|
#
|
2013-05-18 23:27:40 +00:00
|
|
|
# SSH
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
|
2013-05-18 23:27:40 +00:00
|
|
|
# Set the SSH identities to load into the agent.
|
|
|
|
# zstyle ':prezto:module:ssh:load' identities 'id_rsa' 'id_rsa2' 'id_github'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Syntax Highlighting
|
|
|
|
#
|
|
|
|
|
|
|
|
# Set syntax highlighters.
|
2013-03-01 05:20:51 +00:00
|
|
|
# By default, only the main highlighter is enabled.
|
2012-09-15 14:16:33 +00:00
|
|
|
# zstyle ':prezto:module:syntax-highlighting' highlighters \
|
2012-09-13 01:12:48 +00:00
|
|
|
# 'main' \
|
|
|
|
# 'brackets' \
|
|
|
|
# 'pattern' \
|
2016-03-03 04:29:51 +00:00
|
|
|
# 'line' \
|
2012-09-13 01:12:48 +00:00
|
|
|
# 'cursor' \
|
|
|
|
# 'root'
|
2012-12-23 20:50:12 +00:00
|
|
|
#
|
|
|
|
# Set syntax highlighting styles.
|
|
|
|
# zstyle ':prezto:module:syntax-highlighting' styles \
|
|
|
|
# 'builtin' 'bg=blue' \
|
|
|
|
# 'command' 'bg=blue' \
|
|
|
|
# 'function' 'bg=blue'
|
2017-04-13 09:25:45 +00:00
|
|
|
#
|
|
|
|
# Set syntax pattern styles.
|
|
|
|
# zstyle ':prezto:module:syntax-highlighting' pattern \
|
|
|
|
# 'rm*-rf*' 'fg=white,bold,bg=red'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Terminal
|
|
|
|
#
|
|
|
|
|
2013-08-27 19:53:49 +00:00
|
|
|
# Auto set the tab and window titles.
|
|
|
|
# zstyle ':prezto:module:terminal' auto-title 'yes'
|
2012-09-13 01:12:48 +00:00
|
|
|
|
2013-08-28 21:13:14 +00:00
|
|
|
# Set the window title format.
|
|
|
|
# zstyle ':prezto:module:terminal:window-title' format '%n@%m: %s'
|
|
|
|
|
|
|
|
# Set the tab title format.
|
|
|
|
# zstyle ':prezto:module:terminal:tab-title' format '%m: %s'
|
|
|
|
|
2014-04-28 02:19:52 +00:00
|
|
|
# Set the terminal multiplexer title format.
|
|
|
|
# zstyle ':prezto:module:terminal:multiplexer-title' format '%s'
|
|
|
|
|
2012-09-13 01:12:48 +00:00
|
|
|
#
|
|
|
|
# Tmux
|
|
|
|
#
|
|
|
|
|
2013-01-24 13:54:55 +00:00
|
|
|
# Auto start a session when Zsh is launched in a local terminal.
|
|
|
|
# zstyle ':prezto:module:tmux:auto-start' local 'yes'
|
|
|
|
|
|
|
|
# Auto start a session when Zsh is launched in a SSH connection.
|
|
|
|
# zstyle ':prezto:module:tmux:auto-start' remote 'yes'
|
2014-11-06 23:15:23 +00:00
|
|
|
|
|
|
|
# Integrate with iTerm2.
|
|
|
|
# zstyle ':prezto:module:tmux:iterm' integrate 'yes'
|
2017-05-03 00:57:00 +00:00
|
|
|
|
|
|
|
# Set the default session name:
|
2017-05-03 01:02:28 +00:00
|
|
|
# zstyle ':prezto:module:tmux:session' name 'YOUR DEFAULT SESSION NAME'
|
2017-07-11 18:58:56 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Utility
|
|
|
|
#
|
|
|
|
|
2017-07-17 06:14:26 +00:00
|
|
|
# Enabled safe options. This aliases cp, ln, mv and rm so that they prompt
|
|
|
|
# before deleting or overwriting files. Set to 'no' to disable this safer
|
2017-07-11 18:58:56 +00:00
|
|
|
# behavior.
|
2017-07-17 06:14:26 +00:00
|
|
|
# zstyle ':prezto:module:utility' safe-ops 'yes'
|