From c5b1351b74d0a8ae7febcd9bbe3b7330b7005a1e Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Tue, 8 Sep 2020 21:08:28 +0100 Subject: Add additional zsh configuration --- .config/zsh/.zshrc | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 1795c39..f46da04 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -1,8 +1,22 @@ -#Configuration +# Configuration + +## Basic auto/tab complete. +autoload -U compinit +zstyle ':completion:*' menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) # Include hidden files. ## VI mode bindkey -v +## Use vim keys in tab complete menu. +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history +bindkey -v '^?' backward-delete-char + # Configure history ## Where the bash history file is saved @@ -33,3 +47,6 @@ source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ## To customize prompt, run `p10k configure` or edit ~/.config/zsh/.p10k.zsh. [[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh + +## Load syntax highlighting; should be last. +source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null -- cgit v1.2.3-13-gbd6f