When I open my ~/.zshrc
file and add alias homestead=“cd ~/Homestead”
, I expect to be able to type homestead
and be taken to the Homestead folder.
Instead I get the following error:
zsh: command not found: “cd
Even when I use single quotes, i.e. alias homestead='cd ~/Homestead'
and run source ~/.zshrc
I get the same error.
UPDATE: Also, when I run which homestead
I get homestead: aliased to "cd
How can I fix this?
The answer was to open ~/.zshrc
in Sublime Text as opposed to TextEdit and to check that the "
were coming up as 042
in an octal dump.