Just found this, I thought I had sent it, but hadn't.

I trashed the system I did a dist-upgrade on, but testing on the clean
install I can reproduce the 'corruption' I mentioned:

[10.339s] user@ubuntu24:~$ sudo vi /usr/share/byobu/profiles/bashrc
 user@ubuntu24:~$ sudo vi /usr/share/byobu/profiles/bashrc
[4.131s] user@ubunsudo vi /usr/share/byobu/profiles/bashrc
[2.645s] user@ubun

To reproduce: by executing a command, vim in the example above, and when
closing it the prompt looks good. Up arrow shows the previous command,
but then down arrow removes part of the prompt. Hitting up arrow again
then puts the previous command at the depth where it would have been
without the timer.

As for the runtime being part of the prompt, I'll have a look to see if
overwriting PS1 works.

The default in /usr/share/byobu/profiles/bashrc:
export 
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[00m\]\$(byobu_prompt_runtime)
 
\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol)
 "

This removes the timer when put in ~/.bashrc:
export 
PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$(byobu_prompt_status)\[\e[00m\]\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;172m\]\h\[\e[00m\]:\[\e[38;5;5m\]\w\[\e[00m\]\$(byobu_prompt_symbol)
 "

I like the byobu prompt, but editing a user's .bashrc file isn't
practical when users can enable and disable byobu which would change the
order of the last lines in this file. Would updates to byobu undo edits
to the system byobu bashrc profile, and would apt complain about changed
files?

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

Title:
  byobu prompt

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


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

Reply via email to