summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-09-08 21:08:28 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-09-08 21:08:28 +0100
commitc5b1351b74d0a8ae7febcd9bbe3b7330b7005a1e (patch)
treef8abbe65a03c37cc88389141eeec863bcef8c5ee
parentc82fe075af0c1501918e6aa26e0e0a7ce029ba7b (diff)
Add additional zsh configuration
-rw-r--r--.config/zsh/.zshrc19
1 files changed, 18 insertions, 1 deletions
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