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:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -11,7 +11,7 @@
|
|||||||
path = shell/tmux/tmuxifier
|
path = shell/tmux/tmuxifier
|
||||||
url = git@github.com:jimeh/tmuxifier.git
|
url = git@github.com:jimeh/tmuxifier.git
|
||||||
[submodule "shell/zsh/zsh-syntax-highlighting"]
|
[submodule "shell/zsh/zsh-syntax-highlighting"]
|
||||||
path = shell/zsh/zsh-syntax-highlighting
|
path = shell/zsh/custom/plugins/zsh-syntax-highlighting
|
||||||
url = git://github.com/zsh-users/zsh-syntax-highlighting.git
|
url = git://github.com/zsh-users/zsh-syntax-highlighting.git
|
||||||
[submodule "shell/bash/git-aware-prompt"]
|
[submodule "shell/bash/git-aware-prompt"]
|
||||||
path = shell/bash/git-aware-prompt
|
path = shell/bash/git-aware-prompt
|
||||||
@@ -20,5 +20,5 @@
|
|||||||
path = tmux/themes
|
path = tmux/themes
|
||||||
url = git@github.com:jimeh/tmux-themepack.git
|
url = git@github.com:jimeh/tmux-themepack.git
|
||||||
[submodule "shell/zsh/zsh-autosuggestions"]
|
[submodule "shell/zsh/zsh-autosuggestions"]
|
||||||
path = shell/zsh/zsh-autosuggestions
|
path = shell/zsh/custom/plugins/zsh-autosuggestions
|
||||||
url = git@github.com:tarruda/zsh-autosuggestions.git
|
url = git@github.com:tarruda/zsh-autosuggestions.git
|
||||||
|
|||||||
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 \
|
ruby \
|
||||||
thor \
|
thor \
|
||||||
vagrant \
|
vagrant \
|
||||||
|
zsh-autosuggestions \
|
||||||
|
zsh-syntax-highlighting \
|
||||||
)
|
)
|
||||||
|
|
||||||
source "$ZSH/oh-my-zsh.sh"
|
source "$ZSH/oh-my-zsh.sh"
|
||||||
@@ -72,29 +74,9 @@ unalias shotgun
|
|||||||
# Cause I hit emacs shorts too much
|
# Cause I hit emacs shorts too much
|
||||||
bindkey -s "\C-x\C-f" "cd "
|
bindkey -s "\C-x\C-f" "cd "
|
||||||
|
|
||||||
|
# Configure zsh-syntax-highlighting
|
||||||
#
|
|
||||||
# Z-Shell Command Highlighting
|
|
||||||
#
|
|
||||||
|
|
||||||
# Highlighters
|
|
||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
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
|
# use ctrl+t to toggle autosuggestions(hopefully this wont be needed as
|
||||||
# zsh-autosuggestions is designed to be unobtrusive)
|
# zsh-autosuggestions is designed to be unobtrusive)
|
||||||
bindkey '^T' autosuggest-toggle
|
bindkey '^T' autosuggest-toggle
|
||||||
|
|||||||
Reference in New Issue
Block a user