我跑了这个:
$ sublime .
它会打开当前的目录,这正是我想要的。 但是,我无法使用终端窗口,因为它现在显示以下内容:
(sublime:10715): GLib-CRITICAL **: Source ID 1678 was not found when attempting to remove it
(sublime:10715): GLib-CRITICAL **: Source ID 3156 was not found when attempting to remove it
(sublime:10715): GLib-CRITICAL **: Source ID 3162 was not found when attempting to remove it
如何运行sublime命令并使其运行后台。没有守护进程选项:
$ sublime --help
Sublime Text 2 Build 2221
Usage: sublime_text [arguments] [files] edit the given files
or: sublime_text [arguments] [directories] open the given directories
Arguments:
--project <project>: Load the given project
--command <command>: Run the given command
-n or --new-window: Open a new window
-a or --add: Add folders to the current window
-w or --wait: Wait for the files to be closed before returning
-b or --background: Don't activate the application
-h or --help: Show help (this message) and exit
-v or --version: Show version and exit
我也不能使用subl
:
$ subl .
No command 'subl' found, did you mean:
Command 'subs' from package 'libsubtitles-perl' (universe)
Command 'publ' from package 'atfs' (universe)
subl: command not found
我正在运行ubuntu-14.04
答案 0 :(得分:1)
你有没有尝试过:
sublime . &
这将在后台运行。
如果要使用subl而不是sublime,请将sublime.exe的名称更改为subl.exe。