From dfcd3eb18bc5aa698e0ab344aa745b0c8f105e27 Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 2 Dec 2022 10:31:48 -0800 Subject: [PATCH] Change autocomplete strategy --- arch.zsh | 2 ++ init.zsh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 arch.zsh diff --git a/arch.zsh b/arch.zsh new file mode 100644 index 0000000..9fb26cf --- /dev/null +++ b/arch.zsh @@ -0,0 +1,2 @@ +# Arch specific config options +source "/usr/share/doc/pkgfile/command-not-found.zsh" diff --git a/init.zsh b/init.zsh index eee89d2..99a68f8 100644 --- a/init.zsh +++ b/init.zsh @@ -135,6 +135,8 @@ bindkey -M viins "^f" sudo-command-line # Autosuggestions load_plugin zsh-autosuggestions +ZSH_AUTOSUGGEST_STRATEGY=(history completion) +bindkey '^ ' autosuggest-accept # Fancy prompt (starship) eval "$(starship init zsh)" @@ -179,6 +181,9 @@ fi [ -v ZSH_BOOKMARK_LS ] || ZSH_BOOKMARK_LS=true source "${ZSH_CONFIG_DIR}/bookmark.zsh" +# Platform specific stuff +[ -f /usr/bin/pacman ] && source "${ZSH_CONFIG_DIR}/arch.zsh" + __ZSH_LOCAL_FILE="${ZSH_CONFIG_DIR}/local.zsh" [ -e "${__ZSH_LOCAL_FILE}" ] && source "${__ZSH_LOCAL_FILE}"