Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
「git checkout」と言うと、zsh に自分の git ブランチの名前をオートコンプリートしてもらいたいのです。それは可能ですか?
最も簡単な方法 (そしておそらく深刻な量のハッキングを必要としない唯一の方法) は、zsh を更新することです。私のzsh 4.3.9オートコンプリートでは、gitブランチで機能します。
zsh 4.3.9
これを my に追加することで、git autocomplete が zsh で動作するようになりました.zshrc。
.zshrc
autoload -Uz compinit && compinit
クレジット: https://stackoverflow.com/a/67627099/480608