How to set .bash_profile, if it does not exist yet. I want to launch sublime from a command line in Mac

后端 未结 4 1383
伪装坚强ぢ
伪装坚强ぢ 2020-12-08 15:24

I want to launch sublime from a command line in Mac, using subl filename. It seems to involve dealing with .bash_profile. But I didn\'t locate the

4条回答
  •  旧巷少年郎
    2020-12-08 16:03

    Update I'm on Mac OS Mojave.

    Open Terminal.app and paste bellow line,

    (1) touch .bash_profile
    (2) open -a TextEdit.app .bash_profile
    

    this will open a blank page in TextEdit.app , from here you can add,update,delete code.

    I hope this will help someone.

提交回复
热议问题