Tag Archives: zsh

[Solved] Zsh: one of the solutions to parse error near ‘\n’

There are unnecessary branches in the remote warehouse. You want to delete them locally

Input command:

git push origin --delete <feature/yuh_add_authority>

feature/yuh_add_authority --- for the remote repository branch name

Then report an error:

zsh: parse error near `\n'

Solution: do not add <>

git push origin --delete feature/yuh_add_authority

Successfully deleted remote warehouse branch:

Use the Zsh plug-in ‘Zsh syntax highlighting’ to highlight your available Zsh commands

Install Zsh

Installing and configuring Zsh and oh my Zsh in Ubuntu

Effect display


install

For OS X users

direct

brew install zsh-syntax-highlighting

The plug-in will be downloaded automatically and the

source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Add this sentence to your ~ /. Zshrc .

For oh my Zsh users

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

Then activate the plug-in, and add the name of the plug-in to
~ /. Zshrc
plugins = ([plugins...] Zsh syntax highlighting)
to make the change take effect

source ~/.zshrc

Note: there are many plug-ins, but they will slow down obviously every time you enter the command prompt. Use with caution.