git の補完ツールをインストール gitの補完・便利機能ツールにはおなじみのgit-completion・git-promptを使います。 以前はbash版を使っていましたが、今回はzsh版を使います。 まず、ファイルの格納場所を作ります。 mkdir -p ~/.zsh/completion/ githubで公開されている「git-completion.zsh」「git-prompt.sh」ファイルをダウンロードします。 curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.zsh -o ~/.zsh/completion/git-completion.zsh curl https://raw.githubusercontent.com/git/git/master
![zshプロンプトをカスタマイズ、色と改行とgit対応で見やすくする【Mac】](https://cdn-ak-scissors.b.st-hatena.com/image/square/a57a75cff399202194def8b00dd81b7ef23dca28/height=288;version=1;width=512/https%3A%2F%2Fdev.macha795.com%2Fwp-content%2Fuploads%2F2021%2F03%2F2021-03-05_18-51-33_106271-eye-catch-zsh-prompt-customize.jpg)