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

@@ -62,3 +62,6 @@ alias bat-details='upower -i $(upower -e | grep battery)'
# Nvidia refresh rate
alias nvidia-refresh-rate='nvidia-settings --display=:0 -q RefreshRate -t'
# Earthly ssh
alias earthly='earthly --ssh-auth-sock ""'

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
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 /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source "${sugg_path}"
break
fi
done
unset sugg_path
# History
alias fullhist="history 1"
alias longhist="history -1000"