Update skel

This commit is contained in:
David Tomaschik
2023-04-28 21:12:42 -07:00
parent a286795570
commit 8eff002d55
2 changed files with 14 additions and 7 deletions

View File

@@ -126,13 +126,17 @@ if [[ $- == *i* ]] ; then
bindkey -M vicmd 'j' history-substring-search-down
fi
# Suggestions
if test -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ; then
# Works well for solarized
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=10"
# Strategy -- note that 'completion' is slow AF
ZSH_AUTOSUGGEST_STRATEGY=(history)
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
for sugg_path in /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ; do
if test -f "${sugg_path}"; then
# Works well for solarized
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=10"
# Strategy -- note that 'completion' is slow AF
ZSH_AUTOSUGGEST_STRATEGY=(history)
source "${sugg_path}"
break
fi
done
unset sugg_path
# History
alias fullhist="history 1"
alias longhist="history -1000"