Last active
June 25, 2021 18:40
-
-
Save frullah/7b79f896643ab5ae63ff0adc3de15692 to your computer and use it in GitHub Desktop.
oh my zsh syntax plugins
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
#!/bin/zsh | |
# install auto suggestions | |
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# install syntax highlighting | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git | |
echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc | |
sed -z --regexp-extended 's/(plugins=\(.*)\)/\1\tzsh-autosuggestions\n\tzs-syntax-highlighting\n)/g' ~/.zshrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment