【问题标题】:How to extend bash-completion with the already exist completion in another file?如何使用另一个文件中已经存在的完成来扩展 bash 完成?
【发布时间】:2015-04-09 18:16:28
【问题描述】:

例如,在 linux 上有 rar 的 bash-completion,我想扩展,为同一个命令做更多的完成 - rar,也许是我自己的文件扩展名,但我不想触及已经存在的完成脚本,如何启动?

谢谢!

【问题讨论】:

    标签: linux bash shell bash-completion completion


    【解决方案1】:

    基本支持通常在/etc/bash_completion 中,详细信息在目录/etc/bash_completion.d

    有关详细信息,请参阅:

    An introduction to bash completion: part 1 了解一般知识
    An introduction to bash completion: part 2 了解/etc/bash_completion.d 中脚本的详细信息

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-05
      • 1970-01-01
      • 1970-01-01
      • 2022-11-25
      相关资源
      最近更新 更多