0
我已經在我的機器上重新安裝了Ubuntu for Windows,並且我還使用了Git Bash。除了設置別名,我希望終端(Bash)複製Git Bash使用的相同顏色方案,以及終端中的分支名稱。Bash Ubuntu for Windows,使用Git Bash的配色方案
我該如何做到這一點?
我已經在我的機器上重新安裝了Ubuntu for Windows,並且我還使用了Git Bash。除了設置別名,我希望終端(Bash)複製Git Bash使用的相同顏色方案,以及終端中的分支名稱。Bash Ubuntu for Windows,使用Git Bash的配色方案
我該如何做到這一點?
git for Windows使用與git/git
相同的contrib/completion/git-prompt.sh
腳本。
所以一定要確保,如「Displaying git branch name in prompt does not work in screen」解釋,以:
/etc/bash_completion.d
source /etc/bash_completion.d/git-prompt
(或至少源從您的~/.bashrc
:它可以在引用您的~/.bash_profile
)