ruby on rails - Using the Command-line Command to launch Sublime Text 2 on OS X -
i started reading michael hartl's book on rails , i've run across problem in setup phase. hartl keeps referring making file in home directory, i'm not quite sure how this. example, when try setup command line sublime text instructions tell me this: assuming you've placed sublime text 2 in applications folder, , have ~/bin directory in path, can run:
ln -s "/applications/sublime text 2.app/contents/sharedsupport/bin/subl" ~/bin/subl
my problem don't know how put ~/bin directory in path. know real basic appreciation.
create or edit ~/.profile (works both bash , zsh)
add following
export path=$path:$home/bin
the line above saying, overwrite path environment variable , set previous path plus ~/bin
now when try run command, bash in colon separated paths in path environment variable executable.
to see entire path, type echo $path in terminal. or better yet, type env see environment variables.
Comments
Post a Comment