How do I create a Bash alias?

后端 未结 16 671
一个人的身影
一个人的身影 2020-11-28 17:38

I\'m on OSX and I need to put something like this, alias blah=\"/usr/bin/blah\" in a config file but I don\'t know where the config file is.

16条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 18:07

    I just open zshrc with sublime, and edit it.

    subl .zshrc
    

    And add this on sublime:

    alias blah="/usr/bin/blah"
    

    Run this in terminal:

    source ~/.bashrc
    

    Done.

提交回复
热议问题