osx - Subl shortcut not found in command line -
trying sublime text 2 work on command line (mac os x) using "subl" command.
followed these simple instructions: https://www.sublimetext.com/docs/2/osx_command_line.html
when $ subl ~/.bashrc error: -bash: subl: command not found. however, if use full path or $ ~/bin/subl ~/.bashrc, file open in sublime.
what cause shortcut "subl" not found? need set somewhere (bashrc, bash_profile, etc)?
if add ~/bin path environment variable, bash should able find subl:
export path=~/bin:${path} add line .bashrc if want subl available in every new bash session.
Comments
Post a Comment