jimeh / git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.
Creative Commons Zero v1.0 Universal
2.15k stars 340 forks source link

Title in Terminator becomes "/bin/bash" #49

Open madurangasiriwardena opened 7 years ago

madurangasiriwardena commented 7 years ago

Title of the Terminator in Ubuntu becomes "/bin/bash" after changing PS1 to "\${debian_chroot:+(\$debian_chroot)}\u@\h:\w [$txtcyn]\$git_branch[$txtred]\$git_dirty[$txtrst]\$ "

But adding "[\e]0;\u@\h: \w\a]${debian_chroot:+($debian_chroot)}\u@\h:\w [$txtcyn]\$git_branch[$txtred]\$git_dirty[$txtrst]\$ " as the PS1 variable resolves the issue. I have modified the default PS1 variable with the value provided in readme.