![]() This command will save the changes and exit the text editor mode. Step IV: Save changes by pressing Esc button and then typing: This will create a shortcut command sublime to open any file in sublime text editor. bash_profileĪlias sublime="open -a /Applications/Sublime\ Text.app" Step III: Add below line to the end of your. This will take you to the home directory, where. bash_profile and execute sublime shortcut So, in order to make an alias or short name of the above open sublime command, we can add it to the. Learn more about some of the most important bash commands in my article - command line cheatsheet To view hidden files in any directory, type: What it does is it loads the configuration and preferences of the command line interface when we open the terminal. bash_profile is one of the hidden files in our Mac. We want to make life easy and save time but the problem in the above command is that it is too long to type which doesn’t sound like saving time. This is archived from Ashley Nolan's blog, so it can be accessed if/when that site goes down.Open -a /Applications/Sublime\ Text.app hello_world.py If you have any problems getting it working, let me know and I’ll do my best to help you out. Thanks and credit for this great solution again goes to Artero.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |