Change autocomplete strategy

This commit is contained in:
Alexander Rosenberg 2022-12-02 10:31:48 -08:00
parent 44e38eb6c9
commit dfcd3eb18b
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 7 additions and 0 deletions

2
arch.zsh Normal file
View File

@ -0,0 +1,2 @@
# Arch specific config options
source "/usr/share/doc/pkgfile/command-not-found.zsh"

View File

@ -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}"