xxxxxxxxxx
# If you are already using Oh My Zsh, then enabling this feature is quite easy and can be done in two easy steps.
#First, use the following command to download the auto-suggestions plugin from GitHub:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Now, open the zshrc file using the following command:
nano ~/.zshrc
# In this config file, you'd have to find a line starting with plugins and add zsh-autosuggestions as shown here:
xxxxxxxxxx
# Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
# plugins=(zsh-autosuggestions)
xxxxxxxxxx
Git Clone the zsh-autocomplete plugin in the OhMyZsh plugin folder.
$ sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Once that is done, add the plugin in the ~/.zshrc file's plugin list.
plugins=(
zsh-autosuggestions
)
xxxxxxxxxx
brew install zsh-autosuggestions
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
xxxxxxxxxx
#remove the plugin (in ~/.oh-my-zsh/custom/plugins/zsh-autosuggestion),
#changing the git CRLF handling:
git config --global core.autocrlf false
git config --global core.eol lf
#and re-installing it. Maybe it's working for you too.