Search code examples
aliaszshsublimetext2zshrc

Adding an alias for Sublime Text to zshrc


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?


Solution

  • 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.