mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Update zsh-autosuggestions and zsh-syntax-highlighting
And also make them load as a oh-my-zsh plugin.
This commit is contained in:
1
shell/zsh/custom/plugins/zsh-autosuggestions
Submodule
1
shell/zsh/custom/plugins/zsh-autosuggestions
Submodule
Submodule shell/zsh/custom/plugins/zsh-autosuggestions added at 87facd9b85
1
shell/zsh/custom/plugins/zsh-syntax-highlighting
Submodule
1
shell/zsh/custom/plugins/zsh-syntax-highlighting
Submodule
Submodule shell/zsh/custom/plugins/zsh-syntax-highlighting added at 31ac2b36a9
Submodule shell/zsh/oh-my-zsh updated: 5464fe3e4a...bd6dbd1d9b
Submodule shell/zsh/zsh-autosuggestions deleted from 7dc9e0f926
Submodule shell/zsh/zsh-syntax-highlighting deleted from 683f4837a0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user