Fish Shellの現在のオプションに関するオートコンプリート情報を印刷します。

Fish Shellの現在のオプションに関するオートコンプリート情報を印刷します。

オプションを含むコマンドを作成し-て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

乾杯、

ハッサンボット

ベストアンサー1

おすすめ記事