From 8eff002d559997bb952d17c0deaa1f270ac8d871 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 28 Apr 2023 21:12:42 -0700 Subject: [PATCH] Update skel --- dotfiles/aliases | 3 +++ dotfiles/zshrc | 18 +++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/dotfiles/aliases b/dotfiles/aliases index 9888125..859c6cf 100755 --- a/dotfiles/aliases +++ b/dotfiles/aliases @@ -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 ""' diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 576ff6a..2853db1 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -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"