Public bug reported:

I try to add on "/usr/share/byobu/profiles/bashrc" some git info to the prompt 
by add the folloing:
...
               byobu_git_branch() {
                       git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* 
\(.*\)/(\1)/'
               }
...
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 is working if I "byobu-disable-prompt" and "byobu-enable-prompt" inside a 
git directory, but if I move outside ("cd .."), I still get the branch info. :-(

** Affects: byobu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1674641

Title:
  prompt does not actualise on directory change

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/byobu/+bug/1674641/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to