Commit 4bf4202de30754e83a1c2c75d4b4a942153f867b Parent: 78a714261bfb02f6ad85d4ef7f31cb5a6dda0e78 Author: mcol <mcol@posteo.net> Date: 2019-02-09 01:12:30 +0000 Committer: mcol <mcol@posteo.net> Committed: 2019-02-09 01:12:30 +0000 fixed some autosuggest settings
zsh-autosuggestions.zsh Modified
@@ -2,15 +2,9 @@ # https://github.com/zsh-users/zsh-autosuggestions # # -------------------------------------------------# -if [[ -e $ZSH/zsh-autosuggestions/zsh-autosuggestions.zsh ]] -then - source $ZSH/zsh-autosuggestions/zsh-autosuggestions.zsh -else - return -fi +[[ ! -e $ZSH/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && return +source $ZSH/zsh-autosuggestions/zsh-autosuggestions.zsh -# Color to use when highlighting suggestion -# Uses format of `region_highlight` # More info: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Widgets ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8' @@ -37,9 +31,7 @@ # Widgets that accept the entire suggestion ZSH_AUTOSUGGEST_ACCEPT_WIDGETS=( - forward-char end-of-line - vi-forward-char vi-end-of-line vi-add-eol ) @@ -50,8 +42,8 @@ # Widgets that accept the suggestion as far as the cursor moves ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS=( + vi-forward-char forward-word - emacs-forward-word vi-forward-word vi-forward-word-end vi-forward-blank-word