diff zshrc @ 156:49e483d88403

Add autosuggestions to zsh
author zegervdv <zegervdv@me.com>
date Thu, 23 Oct 2014 08:45:15 +0200
parents 884d14e94710
children 318c21a3243c
line wrap: on
line diff
--- a/zshrc	Thu Oct 23 08:39:21 2014 +0200
+++ b/zshrc	Thu Oct 23 08:45:15 2014 +0200
@@ -12,6 +12,7 @@
 source ~/.fzf.zsh
 source ~/.zsh/zsh-history-substring-search.zsh
 source ~/.zsh/z.sh
+source ~/.zsh/plugins/zsh-autosuggestions/autosuggestions.zsh
 
 precmd() {
   if [[ -n "$TMUX" ]]; then
@@ -20,4 +21,11 @@
   fi
 }
 
+# Enable autosuggestions automatically
+zle-line-init() {
+    zle autosuggest-start
+}
+zle -N zle-line-init
+
+
 [[ -f ~/.zshrc.local ]] && source ~/.zshrc.local