linux - terminal command for running sublime text 3 from on ubuntu -
i've installed new dev machine using ubuntu 14.02. have installed relevant software. php/apache2/sublime/composer etc.
i'd able open files sublime or subl command in terminal, can't seem find command point things correctly.
my sublime executable resides here... /opt/sublime_text/sublime_text
in /usr/bin/subl have command
#!/bin/sh exec /opt/sublime_text/sublime_text "$@"
i can't find command in terminal make happen. sublime documentation points mac instructions, i'm newby translate.
any suggestions?
$@
in shell script copies arguments given shell script (after name of script) , places them @ point during execution of script.
for example, if run subl test.txt
, though running exec /opt/sublime_text/sublime_text "test.txt"
.
now, /opt/sublime_text/sublime_text --help
or subl --help
gives text shows usage well.
sublime text build 3065 usage: sublime_text [arguments] [files] edit given files or: sublime_text [arguments] [directories] open given directories arguments: --project <project>: load given project --command <command>: run given command -n or --new-window: open new window -a or --add: add folders current window -w or --wait: wait files closed before returning -b or --background: don't activate application -h or --help: show (this message) , exit -v or --version: show version , exit filenames may given :line or :line:column suffix open @ specific location.
if pass more 1 parameter, of them treated same. so, if ran subl file1.txt file2.cpp file3.html
it'd open 3 of files.
Comments
Post a Comment