prompt does not actualise on directory change
Bug #1674641 reported by
Steve
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
I try to add on "/usr/share/
...
}
...
PS1="${
...
It is working if I "byobu-
Changed in byobu (Ubuntu): | |
importance: | Undecided → Low |
To post a comment you must log in.
Hi Steve,
Hopefully you already figured this out. You just need to escape your $. Look at how byobu_prompt_symbol is called: "\$(byobu_ prompt_ symbol) "
Putting your string into my config let me reproduce your issue. Then when I changed it to this:
PS1="${ debian_ chroot: +($debian_ chroot) }\[\e[38; 5;202m\ ]\$(byobu_ prompt_ status) \[\e[38; 5;245m\ ]\u\[\e[ 00m\]@\ [\e[38; 5;172m\ ]\h\[\e[ 00m\]:\ [\e[38; 5;5m\]\ w\[\033[ 01;31m\ ]\$(byobu_ git_branch) \[\e[00m\ ]\$(byobu_ prompt_ symbol) "
it started behaving correctly:
bryce@trent: ~/ubuntu/ Byobu$ cd byobu/ ~/ubuntu/ Byobu/byobu( master) $ ls ~/ubuntu/ Byobu/byobu( master) $ git branch ~/ubuntu/ Byobu/byobu( master) $ git checkout foobar ~/ubuntu/ Byobu/byobu( foobar) $ cd .. ~/ubuntu/ Byobu$ pushd . ~/ubuntu/ Byobu$ cd byobu/ ~/ubuntu/ Byobu/byobu( foobar) $ ls ~/ubuntu/ Byobu/byobu( foobar) $ cd etc ~/ubuntu/ Byobu/byobu/ etc(foobar) $ popd ~/ubuntu/ Byobu$
bryce@trent:
Applications/ autogen.sh* CONTRIBUTING debian/ experimental/ NEWS README usr/
AUTHORS configure.ac COPYING etc/ Makefile.am po/ snap/
bryce@trent:
bryce@trent:
Switched to branch 'foobar'
bryce@trent:
bryce@trent:
~/ubuntu/Byobu ~/ubuntu/Byobu
bryce@trent:
bryce@trent:
Applications/ autogen.sh* CONTRIBUTING debian/ experimental/ NEWS README usr/
AUTHORS configure.ac COPYING etc/ Makefile.am po/ snap/
bryce@trent:
bryce@trent:
~/ubuntu/Byobu
bryce@trent: