Many times you want to run a text editor from terminal. May be you want to edit a .bashrc file or a .gitignore file. I use my favorite editor that works on both windows and mac, Sublime Text
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
/usr/local/bin
once you typed that command from terminal, you can now open files using sublime directly from your terminal by typing
subl ~/.bashrc
No comments:
Post a Comment