From 539058a830fbfbe3da2e8e750dbe24a6e9b6fe77 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Thu, 2 May 2019 00:48:04 -0400 Subject: [PATCH] Added better support for autosuggest. --- zsh/modules/keybinds/init.zsh | 2 ++ zsh/zshenv | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 zsh/modules/keybinds/init.zsh diff --git a/zsh/modules/keybinds/init.zsh b/zsh/modules/keybinds/init.zsh new file mode 100644 index 0000000..45940fd --- /dev/null +++ b/zsh/modules/keybinds/init.zsh @@ -0,0 +1,2 @@ +# CTRL+space to accept Autosuggest's suggestion. +bindkey '^ ' autosuggest-accept diff --git a/zsh/zshenv b/zsh/zshenv index 47d4ac0..318ad4a 100644 --- a/zsh/zshenv +++ b/zsh/zshenv @@ -27,6 +27,9 @@ zstyle ':tmux:auto-start' name 'tmux' FZF_TMUX=1 FZF_TMUX_HEIGHT=30% +# Auto suggestion config +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=7" + # This will load the specified zsh files if they exist in the $ZDIR/env directory. # It will load based on hostname & uname. env_loader(){