Created
October 26, 2015 07:23
-
-
Save pertrai1/bf26efe2d9df447bffb8 to your computer and use it in GitHub Desktop.
zsh fish like autocomplete installation instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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