summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-02-12 23:56:00 +0000
committerUrbain Vaes <urbain@vaes.uk>2016-02-12 23:56:00 +0000
commitc7cde0bf5b20dd39a274752ef4cb766272cdcade (patch)
tree2b746d39a4f20312410196ba5283c6a7df37ab77 /.zsh
parente6bdc3b2980d1781273c58b8114b9e9d8f976e92 (diff)
parent4a62bba8be5e18d0e4e487598ed525f3dd7c12e7 (diff)
Merge branch 'master' of urbainvaes.com:git/dotfiles
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/plugins16
1 files changed, 5 insertions, 11 deletions
diff --git a/.zsh/plugins b/.zsh/plugins
index 82f4c22..51cd50e 100644
--- a/.zsh/plugins
+++ b/.zsh/plugins
@@ -32,7 +32,7 @@ if ! zgen saved; then
# Other plugins
zgen load rupa/z
zgen load djui/alias-tips
- zgen load tarruda/zsh-autosuggestions
+ zgen load tarruda/zsh-autosuggestions dist/autosuggestions.zsh
zgen load joel-porquet/zsh-dircolors-solarized
# Save all to init script
@@ -43,16 +43,10 @@ fi
# Autosuggestion
{
- # Environment variables for plugin
- AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=6'
-
- zle-line-init() {
- zle autosuggest-start
- }
- zle -N zle-line-init
-
- bindkey '^y' autosuggest-execute-suggestion
+ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=6'
+ autosuggest_start
+ bindkey '^y' autosuggest-accept
}
# Z
-export _Z_EXCLUDE_DIRS=("$HOME/sshfs")
+export _Z_EXCLUDE_DIRS=("$HOME/sshfs", "$HOME/nfs")