Add zsh-autosuggestions

This commit is contained in:
2014-02-25 01:32:49 +00:00
parent 188d8c4eda
commit 4be584fc16
3 changed files with 21 additions and 0 deletions

3
.gitmodules vendored
View File

@@ -22,3 +22,6 @@
[submodule "tmux/themes"]
path = tmux/themes
url = git@github.com:jimeh/tmux-themepack.git
[submodule "shell/zsh/zsh-autosuggestions"]
path = shell/zsh/zsh-autosuggestions
url = git@github.com:tarruda/zsh-autosuggestions.git

View File

@@ -68,3 +68,20 @@ bindkey -s "\C-x\C-f" "cd "
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
source "$DOTZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
#
# Z-Shell Autosuggestions
#
source "$DOTZSH/zsh-autosuggestions/autosuggestions.zsh"
# Enable autosuggestions automatically
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
# zsh-autosuggestions is designed to be unobtrusive)
bindkey '^T' autosuggest-toggle