加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 重命名trash-cli的垃圾命令?

发布时间:2020-12-14 01:24:34 所属栏目:Linux 来源:网络整理
导读:我是trash-cli项目的开发者. trash-cli项目是FreeDesktop.org的开源实现 垃圾规范,提供命令行界面来管理 垃圾箱. 理想情况下,trash-cli提供以下命令: 垃圾(垃圾文件和目录) trash-empty(清空垃圾桶) trash-list(列出已删除的文件) trash-restore(恢复已删除
我是trash-cli项目的开发者.

trash-cli项目是FreeDesktop.org的开源实现
垃圾规范,提供命令行界面来管理
垃圾箱.

理想情况下,trash-cli提供以下命令:

>垃圾(垃圾文件和目录)
> trash-empty(清空垃圾桶)
> trash-list(列出已删除的文件)
> trash-restore(恢复已删除的文件)

但是我必须重命名’trash’命令,因为这个名称太通用了,不能在Fedora中添加trash-cli(参见完整讨论here)

我之所以选择’垃圾’这个名字,是因为我认为这是你可以使用的更好的名字(简短直观),但正如我之前所说,我不能使用这个名字.

在任何情况下,我认为一个好的选择保持垃圾 – *形式,因为它利用了
shell TAB完成.

一开始我被说服重命名’垃圾文件’中的’垃圾’命令,但我不太喜欢它,并且作为Christoph Bloch pointed out:

My arguments against “trash-file”:
* It is not intuitive and therefore unnecessarily difficult to memorise.
* It is unnecessarily long.
* Every change in the name of programs causes confusion,so the new solution
should be a clear improvement (which it isn’t).
* It is even wrong: Directories can be trashed,too.

Just “trash” was much better.

我为renamng’trash’命令收集了一些想法.你想帮助我吗?
选择最好的一个?你知道一个更好的名字吗?

这里的替代品(其中一些是丑陋的,我知道,但也许他们会帮助你
找到一个更好的名字):

>垃圾桶
>垃圾放入
>垃圾桶
>扔垃圾
> trash-f
> trash-rm
>垃圾回收
>垃圾桶
>垃圾桶
>垃圾 –
>垃圾 – 现在
>垃圾 – !
> trash2
>垃圾
> trashit
>垃圾项目
>垃圾进入
> trash-elem
>垃圾路径
>垃圾数据
>垃圾 – 这个
>垃圾 – 它
>垃圾 – 那个

解决方法

垃圾桶(为了简洁和清晰)或垃圾 – 这(为了便于打字,因为它由易于打字的字符组成 – 特别是对于OO程序员;-)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读