You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presently the prompt string generated lack option of adding a Current Git Branch in the prompt string for display in the Bash prompt.
After some fiddling, I was able to get it working. We just need to add the char sequence for displaying current Git Branch in the prompt string in .bashrc file.
Hello
Presently the prompt string generated lack option of adding a Current Git Branch in the prompt string for display in the Bash prompt.
After some fiddling, I was able to get it working. We just need to add the char sequence for displaying current Git Branch in the prompt string in .bashrc file.
For example(Fiery Orange) :
Also to remove the redundant space before $ and cwd in prompt add this before${GIT_BRANCH}: [$ (tput sgr0)]
So, finally my PS1 in .bashrc looks like:
Hope it helps!
The text was updated successfully, but these errors were encountered: