Skip to content

Instantly share code, notes, and snippets.

@azonov
Created December 4, 2020 13:18
Show Gist options
  • Save azonov/f530f8e1aa3902e48fa0a4c73cc910bc to your computer and use it in GitHub Desktop.
Save azonov/f530f8e1aa3902e48fa0a4c73cc910bc to your computer and use it in GitHub Desktop.
Setup sublime text editor for terminal
# - Download Sublime https://www.sublimetext.com/
# - Install Sublime (move Sublime.app to Application folder)
# - Allow sublime to open files from terminal
$ ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
# - Open ./.zshrc via TextEdit
$ open ~/.zshrc
#or
$ touch ~/.zshrc
# if file does not exist.
# - Insert next lines to .zshrc
export PATH="/usr/local/bin:$PATH"
#Be extremely carefully with quotes
# - Check sublime command
$ sublime ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment