alias subl="open -a /Applications/Sublime Text.app" # IN CLI $ cd ~ $ vim .zshrc $ source .zshrc $ subl . # Now it should work! Try restarting the terminal as well if you need to!