私のzshエイリアスをどのように検索しますか?

私のzshエイリアスをどのように検索しますか?

今私は次のことをします。

cat ~/.oh-my-zsh/plugins/git/git.plugin.zsh | grep alias | grep rebase

たとえば、rebaseを使用してgitエイリアスを取得します。エイリアスを定義するすべてのプラグイン(または私が定義したすべてのエイリアス)でキーワードをどのように検索できますか?

ベストアンサー1

からman alias

If no operands are given, all alias definitions shall
be written to standard output.

あなたはそれを使用することができますalias

おすすめ記事