
カスタム記述関数が補完に 2 つの部分から成るコマンドを使用するように、zsh 補完に compdef を使用するにはどうすればよいですか?
例:
my_function () {
sudo apt-get install $@
}
compdef my_function=<WHAT GOES HERE?>
compdef my_function=apt-get install # DOESN'T WORK
compdef my_function='apt-get install' # ALSO NO
どのような助けでもいただければ幸いです。ありがとうございます!