【问题标题】:Auto suggestion in Commands in command line命令行中的命令中的自动建议
【发布时间】:2012-10-28 07:40:44
【问题描述】:

我在 ubuntu 终端中输入了 git s 一个按下的选项卡,它显示了下面给出的 git 子命令:

test: git s <tab>
shortlog  show  show-branch   stage stash status submodule

它是如何发生的?文件的自动建议是通常的一种。如何为带有子命令的命令实现它?

【问题讨论】:

    标签: linux terminal command-line-arguments autosuggest


    【解决方案1】:

    An introduction to bash completion

    这将使您了解 Bash 等 shell 中的自动完成功能。

    【讨论】:

      猜你喜欢
      • 2023-04-06
      • 1970-01-01
      • 2021-06-09
      • 1970-01-01
      • 2020-10-15
      • 1970-01-01
      • 2021-12-19
      • 2010-10-10
      相关资源
      最近更新 更多