zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.5k stars 1.32k forks source link

Getting error in installing #918

Closed ritamgit-alt closed 1 year ago

ritamgit-alt commented 1 year ago

why am I getting this error? did I do anything wrong?

[oh-my-zsh] plugin 'zsh-syntax-highlighting' not found

tried several times to install it like this but getting error again and again.

plugins=(git
zsh-autosuggestions
zsh-syntax-highlighting
)

need some help in here!

jojohanhannesnes commented 1 year ago
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

try to run the git commands , and then after that go to /.oh-my-zsh/custom/plugins, make sure the plugins is there. after that if all set u can restart ur terminal and also dont forget to source ~/.zshrc

ritamgit-alt commented 1 year ago

tried but ain't working.

jojohanhannesnes commented 1 year ago

you still receiving the same error? have you tried source ~/.zshrc? or maybe close and open the terminal again? what OS or terminal did you use?

ritamgit-alt commented 1 year ago

Yep having the same error. I use MacOS

jojohanhannesnes commented 1 year ago

what terminal did you use?, have you installed something like ohmyzsh?

ritamgit-alt commented 1 year ago

It's zsh terminal and ohmyzsh installed too.

ritamgit-alt commented 1 year ago

zsh-autosuggestions perfectly working fine but having error with zsh-syntax-highlighting.

jojohanhannesnes commented 1 year ago

maybe u can try to remove the zsh-syntax-highlighting folder in plugins folder, and then after that redo the git clone

jojohanhannesnes commented 1 year ago

i have the same setup and its working fine

ritamgit-alt commented 1 year ago

maybe u can try to remove the zsh-syntax-highlighting folder in plugins folder, and then after that redo the git clone

I'm gonna try this too. Hope this works

ritamgit-alt commented 1 year ago

thanks, man. It's working fine now🤗