mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add zsh-autosuggestions
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -22,3 +22,6 @@
|
|||||||
[submodule "tmux/themes"]
|
[submodule "tmux/themes"]
|
||||||
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"]
|
||||||
|
path = shell/zsh/zsh-autosuggestions
|
||||||
|
url = git@github.com:tarruda/zsh-autosuggestions.git
|
||||||
|
|||||||
1
shell/zsh/zsh-autosuggestions
Submodule
1
shell/zsh/zsh-autosuggestions
Submodule
Submodule shell/zsh/zsh-autosuggestions added at ebe4cf251a
@@ -68,3 +68,20 @@ bindkey -s "\C-x\C-f" "cd "
|
|||||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
||||||
|
|
||||||
source "$DOTZSH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
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