A simple Costumization tutorial
Turn This :
Into This (or any style):
The easy way
Go to bash settings by simply right-clicking and go to options menu.
There you will find the "Looks" tab.
You can play with the themes and properties to make it look the way you like.
The cool way
Using this method you can change some more things like the window title for example.
- go to
C:\Program Files\Git\etc\profile.d\
- open
git-prompt.sh
as administartor in your favorite code editor. (I found an easy way, to open Powershell as administrator and then open vscode from there).
In the file this is what you suppose to find:
PS1='\[\033]0;$TITLEPREFIX:$PWD\007\]' # set window title
PS1="$PS1"'\n' # new line
PS1="$PS1"'\[\033[32m\]' # change to green
PS1="$PS1"'\u@\h ' # user@host<space>
PS1="$PS1"'\[\033[35m\]' # change to purple
PS1="$PS1"'$MSYSTEM ' # show MSYSTEM
PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
PS1="$PS1"'\w' # current working directory
The comments talk for themself...
I change it to be :
PS1='\[\033]0;Git-Bash\007\]' # set window title Git-Bash
PS1="$PS1"'\n' # new line
PS1="$PS1"'\[\033[32m\]' # change to green
PS1="$PS1"'\u -> ' # user ->
# removed MSYSTEM
PS1="$PS1"'\[\033[33m\]' # change to brownish yellow
PS1="$PS1"'\W' # current working Folder(not the whole path)
And, That's it!
Top comments (2)
coool, thanks!
Thank you!