a1291c5f28
Only 5% (18/342) of the themes listed under [unixorn/awesome-zsh-plugins]
are actually compatible with prompinit. Of these, [clean] also allows
being sourced directly. On the other hand, 3 others are prezto themes.
promptinit would be useful for who wants to try many themes without the
need to restart their shell session. And must be many many, so
"brute-force" starting a new shell to experiment each new theme would be
a burden! Even the cleanup feature of promptinit is still incomplete, so
you eventually get a messy prompt after trying many with it. And that's
not even a everyday use case of the average Zsh user.
So prompinit it not widely supported out there, and also not very useful
for the everyday let-me-use-my-beloved-and-carefully-customized-prompt-during-the-whole-shell-session-pleasee
scenario. It's also faster and simpler to directly just source the prompt
theme to be used, not even having to autoload promptinit and let it scan
all the others themes in fpath that won't be used.
And the Zim "philosophy" is to use fast and simple solutions.
So here we go.
Fixes #325
[unixorn/awesome-zsh-plugins]: e226f3de04/README.md (themes)
[clean]: https://github.com/BrandonRoehl/zsh-clean
107 lines
3 KiB
Text
107 lines
3 KiB
Text
################
|
|
# ZIM SETTINGS #
|
|
################
|
|
|
|
# Set input mode to 'emacs' (default) or 'vi'.
|
|
#zstyle ':zim:input' mode 'vi'
|
|
|
|
# Select what modules you would like enabled. Modules are sourced in the order given.
|
|
zstyle ':zim' modules \
|
|
directory environment git git-info history input utility \
|
|
steeef \
|
|
zsh-completions completion \
|
|
zsh-autosuggestions zsh-syntax-highlighting history-substring-search
|
|
|
|
# Modules setup configuration.
|
|
# See https://github.com/zimfw/zimfw/blob/develop/README.md#module-customization
|
|
zstyle ':zim:module' zsh-completions 'url' 'zsh-users/zsh-completions'
|
|
zstyle ':zim:module' zsh-autosuggestions 'url' 'zsh-users/zsh-autosuggestions'
|
|
zstyle ':zim:module' zsh-syntax-highlighting 'url' 'zsh-users/zsh-syntax-highlighting'
|
|
|
|
###################
|
|
# MODULE SETTINGS #
|
|
###################
|
|
|
|
#
|
|
# completion
|
|
#
|
|
|
|
# Set a custom path for the completion dump file.
|
|
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zcompdump is used.
|
|
#zstyle ':zim:completion' dumpfile "${ZDOTDIR:-${HOME}}/.zcompdump-${ZSH_VERSION}"
|
|
|
|
#
|
|
# environment
|
|
#
|
|
|
|
# Set the string below to the desired terminal title format string.
|
|
# The terminal title is redrawn upon directory change, however, variables like
|
|
# ${PWD} are only evaluated once. Use prompt expansion strings for dynamic data.
|
|
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
|
|
# For example, '%n@%m: %1~' corresponds to 'username@host: /current/directory'.
|
|
#zstyle ':zim:environment' termtitle '%n@%m: %1~'
|
|
|
|
#
|
|
# history
|
|
#
|
|
|
|
# Save the history in a custom file path.
|
|
# If none is provided, the default ${ZDOTDIR:-${HOME}}/.zhistory is used.
|
|
#HISTFILE=${ZDOTDIR:-${HOME}}/.zsh_history
|
|
|
|
#
|
|
# input
|
|
#
|
|
|
|
# Enable double-dot expansion.
|
|
# This appends '../' to your input for each '.' you type after an initial '..'
|
|
#zstyle ':zim:input' double-dot-expand yes
|
|
|
|
#
|
|
# pacman
|
|
#
|
|
|
|
# Set an optional pacman frontend.
|
|
#zstyle ':zim:pacman' frontend 'powerpill'
|
|
|
|
# Load any helper scripts as defined here.
|
|
#zstyle ':zim:pacman' helpers 'aur'
|
|
|
|
#
|
|
# ssh
|
|
#
|
|
|
|
# Load these ssh identities with the ssh module.
|
|
#zstyle ':zim:ssh' ids 'id_rsa'
|
|
|
|
#
|
|
# utility
|
|
#
|
|
|
|
# Enable spelling correction prompts.
|
|
# See http://zsh.sourceforge.net/Doc/Release/Options.html#index-CORRECT
|
|
#setopt CORRECT
|
|
|
|
# Set a custom spelling correction prompt.
|
|
#SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
|
|
|
#
|
|
# zsh-autosuggestions
|
|
#
|
|
|
|
# Customize the style that the suggestions are shown with.
|
|
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style
|
|
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10'
|
|
|
|
#
|
|
# zsh-syntax-highlighting
|
|
#
|
|
|
|
# Set what highlighters will be used.
|
|
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
|
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
|
|
|
# Customize the main highlighter styles.
|
|
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md#how-to-tweak-it
|
|
#typeset -A ZSH_HIGHLIGHT_STYLES
|
|
#ZSH_HIGHLIGHT_STYLES[comment]='fg=10'
|