Update zsh-autosuggestions and zsh-syntax-highlighting

And also make them load as a oh-my-zsh plugin.
This commit is contained in:
2016-04-03 10:21:44 +01:00
parent 652f19806b
commit fe52d9bfce
7 changed files with 8 additions and 26 deletions

View File

@@ -50,6 +50,8 @@ plugins=( \
ruby \
thor \
vagrant \
zsh-autosuggestions \
zsh-syntax-highlighting \
)
source "$ZSH/oh-my-zsh.sh"
@@ -72,29 +74,9 @@ unalias shotgun
# Cause I hit emacs shorts too much
bindkey -s "\C-x\C-f" "cd "
#
# Z-Shell Command Highlighting
#
# Highlighters
# Configure zsh-syntax-highlighting
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