From 87a8b825632ac0a26260a7137f0b6b319ac80fc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=84=B3ichiel=20=E2=84=9Boos?= Date: Wed, 3 May 2017 16:05:37 +0200 Subject: [PATCH] [autosuggestions] Add module Closes #172. Fixes #35. --- .gitmodules | 3 +++ modules/autosuggestions/README.md | 13 +++++++++++++ modules/autosuggestions/external | 1 + modules/autosuggestions/init.zsh | 9 +++++++++ 4 files changed, 26 insertions(+) create mode 100644 modules/autosuggestions/README.md create mode 160000 modules/autosuggestions/external create mode 100644 modules/autosuggestions/init.zsh diff --git a/.gitmodules b/.gitmodules index f2bee87..becdcb6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "modules/prompt/external-themes/lean"] path = modules/prompt/external-themes/lean url = https://github.com/miekg/lean +[submodule "modules/autosuggestions/external"] + path = modules/autosuggestions/external + url = https://github.com/zsh-users/zsh-autosuggestions.git diff --git a/modules/autosuggestions/README.md b/modules/autosuggestions/README.md new file mode 100644 index 0000000..cdffeb8 --- /dev/null +++ b/modules/autosuggestions/README.md @@ -0,0 +1,13 @@ +zsh-autosuggestions +=================== + +_[Fish](http://fishshell.com/)-like fast/unobtrusive autosuggestions for zsh._ + +It suggests commands as you type, based on command history. + + + +Contributing +------------ + +Contributions should be submitted [upstream to zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) diff --git a/modules/autosuggestions/external b/modules/autosuggestions/external new file mode 160000 index 0000000..fedc22e --- /dev/null +++ b/modules/autosuggestions/external @@ -0,0 +1 @@ +Subproject commit fedc22e9bbd046867860e772d7d6787f5dae9d4c diff --git a/modules/autosuggestions/init.zsh b/modules/autosuggestions/init.zsh new file mode 100644 index 0000000..e6407e7 --- /dev/null +++ b/modules/autosuggestions/init.zsh @@ -0,0 +1,9 @@ +# +# Fish-like fast/unobtrusive autosuggestions for zsh. +# +# It suggests commands as you type, based on command history. +# + +# source script +source ${0:h}/external/zsh-autosuggestions.zsh || return 1 +