[Seek Help] deepin-editor能改名字吗?
Tofloor
poster avatar
facewind1
deepin
2021-04-14 03:16
Author

每次想要用deepin-editor打开文本时,总是要输这么一长串单词,能不能改成想cat和vim一样这么短的名字?

Reply Favorite View the author
All Replies
red13
deepin
2021-04-14 03:49
#1

vi ~/.bashrc

在最后一行插入

alias edit='deepin-editor'

保存,退出

source ~/.bashrc

 

达到你的要求了,,直接终端下输入 edit xxxx.txt试试就知道

 

 

Reply View the author
观摩
deepin
2021-04-14 04:03
#2

方法是很多的,参考沙发的方法,你哪怕别名命名为 et 都是可以的

Reply View the author
忘记、过去
deepin
2021-04-14 04:25
#3

建议 sudo ln -s -f /usr/bin/deepin-editor /usr/bin/dedit,直接 dedit 就行了。

~/.bashrc 里面只能对当前用户生效,sudo 就不行了。

Reply View the author
Ziggy
deepin
2021-04-14 08:58
#4

目前内测版本已经支持输入dedit了

Reply View the author
facewind1
deepin
2021-04-14 16:34
#5
red13

vi ~/.bashrc

在最后一行插入

alias edit='deepin-editor'

保存,退出

source ~/.bashrc

 

达到你的要求了,,直接终端下输入 edit xxxx.txt试试就知道

 

 

万分感谢

Reply View the author
facewind1
deepin
2021-04-14 16:35
#6
Ziggy

目前内测版本已经支持输入dedit了

不敢随便升级,怕出bug

Reply View the author
忘记、过去
deepin
2021-04-14 18:36
#7
Ziggy

目前内测版本已经支持输入dedit了

所以以前版本一直有的,1010为啥要删掉呢……

Reply View the author
red13
deepin
2021-04-14 21:02
#8
Ziggy

目前内测版本已经支持输入dedit了

为啥我非内测版,,,也有dedit ??难道我用了个老版本??

Reply View the author
Ziggy
deepin
2021-04-18 01:50
#9
忘记、过去

所以以前版本一直有的,1010为啥要删掉呢……

这个不太清楚噢

Reply View the author
Ziggy
deepin
2021-04-18 01:50
#10
red13

为啥我非内测版,,,也有dedit ??难道我用了个老版本??

应该是在20.2升级时修复的

Reply View the author