1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

zshrc: add more options & clean up

This commit is contained in:
Joe Groocock 2017-10-10 10:58:45 +01:00
parent 3915bfa6bb
commit 1e5813dc35
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

4
.zshrc
View File

@ -15,7 +15,8 @@ mkdir -p $ZSH_CACHE_DIR $ZSH_CONFIG_DIR
HISTFILE=$ZSH_CONFIG_DIR/histfile HISTFILE=$ZSH_CONFIG_DIR/histfile
HISTSIZE=100000 HISTSIZE=100000
SAVEHIST=100000 SAVEHIST=100000
setopt sharehistory histignoredups histignorespace histreduceblanks autocd autopushd extendedglob alwaystoend dvorak setopt sharehistory histignorealldups histignorespace histreduceblanks
setopt pathdirs autocd autopushd correctall extendedglob alwaystoend dvorak
# Only set tty if running interactively # Only set tty if running interactively
if tty -s; then if tty -s; then
@ -61,7 +62,6 @@ source $ZSH/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
ZSH_AUTOSUGGEST_CLEAR_WIDGETS=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}") ZSH_AUTOSUGGEST_CLEAR_WIDGETS=("${(@)ZSH_AUTOSUGGEST_CLEAR_WIDGETS:#(up|down)-line-or-history}")
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down) ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(history-substring-search-up history-substring-search-down)
setopt HIST_IGNORE_ALL_DUPS
ZSH_HIGHLIGHT_STYLES[default]='fg=blue' ZSH_HIGHLIGHT_STYLES[default]='fg=blue'
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold' ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red,bold'
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow' ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow'