当编写带有选项的命令-
并按 Tab 键时,会显示可能的完成列表以及选项功能的简短说明。有没有办法让这个列表也包含当前输入的选项?
例如,书写grep -r
和点击选项卡显示
-rA (Print NUM lines of trailing context)
-ra (Process binary file as text)
-rB (Print NUM lines of leading context)
-rb (Print byte offset of matches)
…and 32 more rows
但我希望它显示
-r (Read files under each directory, recursively)
-rA (Print NUM lines of trailing context)
-ra (Process binary file as text)
-rB (Print NUM lines of leading context)
-rb (Print byte offset of matches)
…and 32 more rows
干杯,
哈桑博特