osx - Quotes became invalid in .zshrc file -


in .zshrc file, if add

alias vii=“mvim -v”

or alias vii=‘mvim -v’


after used command vii, terminal displayed:

zsh: command not found: “mvim

or zsh: command not found: ‘mvim


if put

alias vii=mvim -v

then, commandvii works mvim without -v


same, in .zshrc file,

zsh_theme=robbyrussell works.

zsh_theme=“robbyrussell" doesn't work

why quotes became invalid in .zshrc file? how solve?

you have use ascii quotes, not curly quotes editor inserting.

compare

alias vii=“mvim -v”   # wrong 

with

alias vii="mvim -v"   # right 

Comments