Fish-like autosuggestions for zsh
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Thiago de Arruda a0d6493f34 Update documentation 12 years ago
.gitignore First commit 12 years ago
LICENSE-MIT First commit 12 years ago
README.mkd Update documentation 12 years ago
autosuggestions.zsh Integrate with zsh-syntax-highlighting 12 years ago
completion-client.zsh Refactored, only use completion server on 12 years ago
completion-server-init.zsh Add magic prefix to distinguish completion lines 12 years ago
completion-server.zsh Direct less frequent log messages to stderr for 12 years ago

README.mkd

zsh-autosuggestions

Fish-like fast/unobtrusive autosuggestions for zsh. Shelr demo.

Installation

git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh-autosuggestions

cat >> ~/.zshrc << "EOF"
source ~/.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)
bindkey '^T' autosuggest-toggle

# use ctrl+f to accept suggestions
bindkey '^F' autosuggest-accept-suggested-small-word
# or
bindkey '^F' autosuggest-accept-suggested-word
EOF

I recommend binding ctrl+f to autosuggest-accept-suggested-small-word, as the zsh-history-substring-search plugin will already provide a key to accept the entire suggestion