Reputation: 49
I can not use the open command in my mac。Who can tell me why. I wii be very grateful。
╭─sanyinchen@sanyinchendeMacBook-Pro ~
╰─$ open
zsh: command not found: open
Upvotes: 0
Views: 4366
Reputation: 49
Upvotes: 1
Reputation: 3175
On my mac open
is located in:
$ which open
/usr/bin/open
You're likely missing /usr/bin from your path.
# To verify:
echo $PATH
# To add it (temporarily)
export PATH="$PATH:/usr/bin"
To add it permanently, add the above export line to your ~/.zshrc
Upvotes: 0