From 743c24f2b61bd6d64b71b7440df34dfa3d1f5f85 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 26 Oct 2016 09:45:19 +0200 Subject: [PATCH] Add "zsh-autosuggestions" plugin --- plugins/zsh-autosuggestions/README.md | 4 ++++ .../zsh-autosuggestions.zshrc | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 plugins/zsh-autosuggestions/README.md create mode 100644 plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc diff --git a/plugins/zsh-autosuggestions/README.md b/plugins/zsh-autosuggestions/README.md new file mode 100644 index 0000000..fa4da32 --- /dev/null +++ b/plugins/zsh-autosuggestions/README.md @@ -0,0 +1,4 @@ +## zsh-autosuggestions + +Initialize "Fish-like autosuggestions for zsh", see +https://github.com/zsh-users/zsh-autosuggestions. diff --git a/plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc b/plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc new file mode 100644 index 0000000..6492620 --- /dev/null +++ b/plugins/zsh-autosuggestions/zsh-autosuggestions.zshrc @@ -0,0 +1,17 @@ +# AX-ZSH: Alex' Modular ZSH Configuration +# zsh-autosuggestions.zshrc: Initialize "Fish-like autosuggestions for zsh" + +axzsh_is_dumb_terminal && return 1 + +for script ( + "/usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh" + "/usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh" +); do + if [[ -r "$script" ]]; then + source "$script" + unset script + return 0 + fi +done +unset script +return 1 -- 2.39.2