Adding an alias for Sublime Text to zshrc

saltex picture saltex · Sep 8, 2012 · Viewed 18.2k times · Source

Just have a quick question on how to add an alias for SublimeText to my ZSH. I've been to their site where they tell you how to do it within bash, but I don't understand how to do it within ZSH. It has been killing me, I just want to open text files from my command prompt. Anyone out there have experience with ZSH where they have created aliases?

Answer

Thor picture Thor · Sep 9, 2012

Aliases in zsh are created in the same manner as in bash.

alias somealias='something longer'

Now somealias will expand to 'something longer' (without the quotes). Put it into ~/.zshrc to make it persistent.