Skip to content

Instantly share code, notes, and snippets.

@weslley39
Created October 10, 2014 00:17
Show Gist options
  • Save weslley39/1b65500ff4a77d0ce1cf to your computer and use it in GitHub Desktop.
Save weslley39/1b65500ff4a77d0ce1cf to your computer and use it in GitHub Desktop.
cd
mkdir bin
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
cd $HOME // this will get you back to home directory
vim .bash_profile or .bashrc // this will open your .bash_profile file
export PATH=$PATH:~/bin
:wq // saves and close file
exit // exits terminal
source .bashrc
Just open a file with
subl file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment