Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
求问怎么设置命令行subl启动sublime text3
Apps Section
977
views ·
3
replies ·
To
floor
Go
assholev
deepin
2017-10-10 22:06
Author
想在命令行里输入subl启动sublime text, sublime text是从应用商店里下的
Reply
Like 0
Favorite
View the author
All Replies
isunny
deepin
2017-10-10 22:47
#1
方法1 先找到 subl 这个快捷方式的路径,然后添加到 系统变量 PATH
方法2 subl ln -s 软连接到系统变量路径里面, 例如 : ln -s /path-to-subl /usr/local/bin
Reply
Like 0
View the author
132******85
deepin
2017-10-10 22:52
#2
本帖最后由 onhao 于 2017-10-10 14:55 编辑
whereis subl
subl: /usr/bin/subl
vi /usr/bin/subl
#!/bin/sh
exec /opt/sublime_text/sublime_text "$@"
下面还有更简便的方法 从官网下载最新版本的sublime 然后 应用https://wuhao.pw/archives/51/
Reply
Like 0
View the author
assholev
deepin
2017-10-13 04:02
#3
解决啦,一句命令就可以了
sudo ln -s /opt/sublime_text_3/sublime_text /usr/local/bin/subl
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More