From: Alexander Barton Date: Wed, 26 Oct 2016 07:45:19 +0000 (+0200) Subject: Add "zsh-autosuggestions" plugin X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;ds=sidebyside;h=743c24f2b61bd6d64b71b7440df34dfa3d1f5f85;hp=8d916b9f62509cd4d2408a1e59c3319f71cc6489;p=ax-zsh.git Add "zsh-autosuggestions" plugin --- 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