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 +