PS1 stands for Prompt String 1. It is the one of the prompts available in the Linux/UNIX shell. When you open your terminal, it will display the content defined in the PS1 variable in your bash prompt. We can use this to display the name of the current Git branch in our prompt. The parse_git_branch function … Continue reading Show Git Branch in Terminal