Skip to content

Instantly share code, notes, and snippets.

@pertrai1
Created October 26, 2015 07:23
Show Gist options
  • Save pertrai1/bf26efe2d9df447bffb8 to your computer and use it in GitHub Desktop.
Save pertrai1/bf26efe2d9df447bffb8 to your computer and use it in GitHub Desktop.
zsh fish like autocomplete installation instructions
Clone this repository to ~/.zsh/zsh-autosuggestions (or anywhere else):
git clone git://github.com/tarruda/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Clone zsh-syntax-highlighting repository to ~/.zsh/zsh-syntax-highlighting (or anywhere else):
git clone git://github.com/jimmijj/zsh-syntax-highlighting ~/.zsh/zsh-syntax-highlighting
Load and enable autosuggestions; copy the following snippet and put it to your .zshrc file:
# Load zsh-syntax-highlighting.
source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# Load zsh-autosuggestions.
source ~/.zsh/zsh-autosuggestions/autosuggestions.zsh
# Enable autosuggestions automatically.
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
Reopen your terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment