mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:46:42 +00:00
Add zsh-autosuggestions
This commit is contained in:
@@ -68,3 +68,20 @@ bindkey -s "\C-x\C-f" "cd "
|
||||
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