config(zsh): improve highlight
parent
6e183ad83e
commit
89e38d8e9b
|
@ -18,12 +18,18 @@ export XDG_DATA_HOME=~/.local/share
|
||||||
export LESS="-RF -i -K -s -x2 --wordwrap"
|
export LESS="-RF -i -K -s -x2 --wordwrap"
|
||||||
|
|
||||||
# zsh plugins
|
# zsh plugins
|
||||||
|
# https://github.com/zsh-users/zsh-syntax-highlighting
|
||||||
|
if [[ -f /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]]; then
|
||||||
|
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
# https://github.com/zsh-users/zsh-autosuggestions
|
# https://github.com/zsh-users/zsh-autosuggestions
|
||||||
if [[ -f /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
if [[ -f /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]]; then
|
||||||
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
|
|
||||||
typeset -g ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
|
export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
|
||||||
typeset -g ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
|
export ZSH_AUTOSUGGEST_MANUAL_REBIND=true
|
||||||
|
export ZSH_AUTOSUGGEST_HISTORY_IGNORE=$HISTORY_IGNORE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://unix.stackexchange.com/q/621606
|
# https://unix.stackexchange.com/q/621606
|
||||||
|
@ -36,6 +42,7 @@ if [[ -f /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-
|
||||||
|
|
||||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=''
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND=''
|
||||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=''
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND=''
|
||||||
|
export HISTORY_SUBSTRING_SEARCH_PREFIXED=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# git
|
# git
|
||||||
|
|
Loading…
Reference in New Issue