summaryrefslogtreecommitdiff
path: root/.zsh
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-02-12 11:27:33 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-02-12 11:27:33 +0100
commit4350b747f91ec9d6f775f0315a868e0eaa1b4e7c (patch)
tree3202c52fb8c9ec68a6cacf886974f33f4ebeb722 /.zsh
parentfe5e311fa9e6b3fa25ccd9ce455032b2e126ca09 (diff)
Correct bugs xmodmap
Diffstat (limited to '.zsh')
-rw-r--r--.zsh/plugins14
1 files changed, 4 insertions, 10 deletions
diff --git a/.zsh/plugins b/.zsh/plugins
index e87140c..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,15 +43,9 @@ 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