I installed zsh
on macOS via homebrew and set it as my default shell, along with installing oh-my-zsh
.
I wanted to add my aliases to a separate file instead of cluttering up my .zshrc
file. So I added the following line to the end:
. ~/.zsh_aliases
However, when I load a new shell, it spits out the error:
Last login: Sat Dec 28 00:53:25 on ttys001
/Users/username/.zsh_aliases:97: = not found
Even though if I just paste that path into the terminal and hit enter, it runs the file. The file exists and has +x
permissions.
Furthermore, it seems that the aliases actually do work. It just displays the error.
Why am I getting the error?
.zsh_aliases
?.zsh_aliases
?