I\'m having difficulty getting this set up. I fixed my .bash_profile
, and created the symlink using the following command from the Sublime website:
You could just add the following to the shell config file .bash_profile or .zshrc (Apple replaced bash with zsh as the default shell in macOS Catalina):
alias subl="open -a /Applications/Sublime\ Text.app"
These are the steps to edit .zshrc
and save the changes (press ESC and :wq!
to save and exit):
$ cd ~
$ vim .zshrc
$ source .zshrc
To verify that it works, try the following and it should open up Sublime Text.
$ subl .zshrc