To better customize Cygwin's command line and terminal window, I followed this git-prompt guide: https://web.archive.org/web/20160304014517/http://ithaca.arpinum.org/2013/01/02/git- prompt.html
Everything in the manual works except for the last prompt, located under the heading "One Last Thing", which offers the following line to change your PS1 and set the title bar of your terminal:
PROMPT_COMMAND='__git_ps1 "\u \W" "\\\$ " " [%s $(get_sha)] "; set_titlebar "$USER@${HOSTNAME%%.*} $(get_dir)"'
However, when I add this line to my .bashrc, I get the following error:
-bash: set_titlebar: command not found
I have searched everywhere for a solution to why this is happening, but I have come to a standstill. I am using mintty 1.2-beta1 (x86_64-pc-cygwin), my terminal is installed on xterm and using the script git-prompt.sh.
source
share