summaryrefslogtreecommitdiff
path: root/config/essentials/zsh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-27 17:31:53 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-27 17:31:53 +0100
commit623951fb948261c0dbe1f5b3881596bb509534b6 (patch)
tree6a8c2b0f56dcf45e2ef447dcfa05577086f113e9 /config/essentials/zsh
parentb625ace8c9fbb9df6be17b1c3b1519ac6325d8b9 (diff)
[zsh] added auto notify and keybind for autosuggestions
Diffstat (limited to 'config/essentials/zsh')
-rw-r--r--config/essentials/zsh/.zshrc14
1 files changed, 11 insertions, 3 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 9b105e6..02d0ddf 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -32,15 +32,22 @@ eval "$(zoxide init zsh)"
### Plugins
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
+plug "MichaelAquilina/zsh-you-should-use"
+plug "chivalryq/git-alias"
plug "kutsan/zsh-system-clipboard"
+# plug "marlonrichert/zsh-autocomplete"
plug "xPMo/zsh-toggle-command-prefix"
+plug "zap-zsh/fzf"
plug "zap-zsh/vim"
+plug "zdharma-continuum/fast-syntax-highlighting"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-completions"
-plug "zap-zsh/fzf"
-plug "zdharma-continuum/fast-syntax-highlighting"
plug "zsh-users/zsh-history-substring-search"
-plug "MichaelAquilina/zsh-you-should-use"
+
+plug "MichaelAquilina/zsh-auto-notify"
+export AUTO_NOTIFY_TITLE="zsh"
+export AUTO_NOTIFY_BODY="<b>%command</b> [%exit_code]"
+AUTO_NOTIFY_IGNORE+=("gurk")
# Substring search settings
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
@@ -92,6 +99,7 @@ bindkey "^Xa" _expand_alias
bindkey "^Xe" edit-command-line
bindkey "^[." insert-last-word
bindkey "^['" quote-line
+bindkey '\ea' autosuggest-toggle
## Move around using h j k l in completion menu
zmodload zsh/complist
bindkey -M menuselect 'h' vi-backward-char