[Bug 525552] Re: Byobu overwrites shell prompt setting
I was also affected by issue. But thanks to thread, I found how to disable PS1 changing by byobu. Default bash.rc enables byobu colorizing if it exists: [ -r /home/bhs/.byobu/prompt ] && . /home/bhs/.byobu/prompt #byobu- prompt# If line is commented, PS1 remains identical to what's set by bash of user's .bashrc setting. Personally, I feel byobu's authors tried to make prompt better but terminal program limitations might be screwing it up :(. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
Hello, Getting color changing here too, after runing byobu at ubuntu server 4.4.0. Just doing nano .bashrc ctrl-x gets back to the previous prompt colors before issuing byobu. Please notice nothing was really changed at .bashrc, just opened with nano. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
Hi you probably have a # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm|xterm-color|*-256color) color_prompt=yes;; esac in your .bashrc and the default TERM for byobu is "screen" (for me) So 1) add force_color_prompt=yes in your bashrc or 2) add "screen" (or tmux depending what return "echo $TERM) in the case -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
+1 for @readan2 I've been trying to make byobu+screen automatically start a login shell for months (i know that sounds pathetic), and this workaround adequately solves this for me. In order to utilize my ruby on rails environment I must be logged into a login shell which required me to do bash -l, /bin/bash --login, etc. every time I opened my ssh connection. To clarify this workaround however, With my distro, in /usr/local/bin/byobu-shell there is a line that looks like this: [ -n $SHELL -a -x $SHELL ] exec $SHELL || exec /bin/bash I changed it to look like this: [ -n $SHELL -a -x $SHELL ] exec $SHELL --login || exec /bin/bash --login just in case anyone wasn't sure how to implement @readan2's instructions, doing this worked for me. I also inserted this just before the 3 present commands in /usr/share/byobu/profiles/screenrc (assuming it would work the same as with tmux). I also didn't test after the first modification so this may or may not be necessary, but after doing these two things I no longer need to run /bin/bash --login.: set -g default-command $SHELL --login thanks @readan2 for the working solution. WHY COULDN'T I FIND YOU WEEKS AGO?? -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to byobu in Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
+1 for @readan2 I've been trying to make byobu+screen automatically start a login shell for months (i know that sounds pathetic), and this workaround adequately solves this for me. In order to utilize my ruby on rails environment I must be logged into a login shell which required me to do bash -l, /bin/bash --login, etc. every time I opened my ssh connection. To clarify this workaround however, With my distro, in /usr/local/bin/byobu-shell there is a line that looks like this: [ -n $SHELL -a -x $SHELL ] exec $SHELL || exec /bin/bash I changed it to look like this: [ -n $SHELL -a -x $SHELL ] exec $SHELL --login || exec /bin/bash --login just in case anyone wasn't sure how to implement @readan2's instructions, doing this worked for me. I also inserted this just before the 3 present commands in /usr/share/byobu/profiles/screenrc (assuming it would work the same as with tmux). I also didn't test after the first modification so this may or may not be necessary, but after doing these two things I no longer need to run /bin/bash --login.: set -g default-command $SHELL --login thanks @readan2 for the working solution. WHY COULDN'T I FIND YOU WEEKS AGO?? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
+1 for the workarounds from @readan2 in #33. Using a mbp5,3 on OSX 10.9.1, with byobu and tmux from homebrew. I don't understand the reasons for wanting to avoid a login shell, but I can report that adding --login in the three places shown below gets my $PS1 back the way it's supposed to be. 1) /usr/local/bin/byobu-shell: exec $SHELL --login || exec /bin/sh --login 2) /usr/local/share/byobu/profiles/tmux: set -g default-command $SHELL --login A separate, unrelated point, is that homebrew does not ship the python snack module in its libnewt, so byobu-config does not work. :( -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to byobu in Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
+1 for the workarounds from @readan2 in #33. Using a mbp5,3 on OSX 10.9.1, with byobu and tmux from homebrew. I don't understand the reasons for wanting to avoid a login shell, but I can report that adding --login in the three places shown below gets my $PS1 back the way it's supposed to be. 1) /usr/local/bin/byobu-shell: exec $SHELL --login || exec /bin/sh --login 2) /usr/local/share/byobu/profiles/tmux: set -g default-command $SHELL --login A separate, unrelated point, is that homebrew does not ship the python snack module in its libnewt, so byobu-config does not work. :( -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I also see this behavior with byobu 5.60-0ubuntu1 on Ubuntu 13.10. I can run byobu manually or automatically at login (using byobu-enable) but the aliases and functions I have in a /etc/profile.d/lxc-helpers.sh script aren't available to me. Interestingly, when I run tmux it does have my profile (aliases and funtions) available. As a workaround for byobu I just append the following to my ~/.bashrc file to re-source the profile which gets everything working as expected. . /etc/profile -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to byobu in Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I also see this behavior with byobu 5.60-0ubuntu1 on Ubuntu 13.10. I can run byobu manually or automatically at login (using byobu-enable) but the aliases and functions I have in a /etc/profile.d/lxc-helpers.sh script aren't available to me. Interestingly, when I run tmux it does have my profile (aliases and funtions) available. As a workaround for byobu I just append the following to my ~/.bashrc file to re-source the profile which gets everything working as expected. . /etc/profile -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I too can confirm that this is still present. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to byobu in Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I too can confirm that this is still present. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I tried to edit the two places readan2 mentioned on Ubuntu 13.10, but that just caused byobu to immediately exit on start :( I need a login shell to get RVM to work. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to byobu in Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I tried to edit the two places readan2 mentioned on Ubuntu 13.10, but that just caused byobu to immediately exit on start :( I need a login shell to get RVM to work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I can confirm that this affects me as well with byoby 5.21-5. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I'm using byobu-tmux with bash and .bash_profile is not sourced at all so I'm missing my alias, functions, environment variables and even bash- completion doesn't work. To enable profile sourcing, login mode for the shell has to be used. As far as I can gather, login mode is disabled on purpose. I don't know the reason for it though (maybe so that random stuff from profiles wouldn't get sourced), but it should provide at least a setting to chose whether to use login shell. There are two places where new shell is started when launching byobu: 1) /usr/bin/byobu-shell does exec $SHELL 2) /usr/share/byobu/profiles/tmux does set -g default-command $SHELL Tmux by default starts login shell, but it is explicitly disabled in /usr/share/byobu/profiles/tmux for byobu by setting default-command. A workaround is to comment out that line. I didn't manage to figure out how to unset default-command from user profile. Seems like most shells support -l | --login flag, so that also can be used to start login shell: 1) /usr/bin/byobu-shell: exec $SHELL --login 2) /usr/share/byobu/profiles/tmux: set -g default-command $SHELL --login The first point is need so that initial byobu window uses login shell and the second for the subsequent windows. Previous commenter mentioned using -$SHELL to get login shell, but that link is not installed on all distros, so I think the flag is the best option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
`echo shell -/bin/bash $HOME/.screenrc` will solve your problem by invoking the bash as login shell see `man 1 screen`, and search for `shell command` can find the answer. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting To manage notifications about this bug go to: https://bugs.launchpad.net/byobu/+bug/525552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
The bug was about byobu not reading PS1's formatting in ~/.bash_profile. The fix apparently goes along so just do not specify it there, which I would not go as far to call it a fix. My fix, if you can also call it that, is, instead, going to Menu Create new windows Command: /bin/bash --login, and tick add to default windows (the only one I have). Cannot tell for other shells since I just know bash. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
Thanks, Igor. For now, I'm going to document your workaround in the byobu.1 manpage. Thanks! ** Changed in: byobu (Ubuntu) Status: Confirmed = Fix Committed ** Changed in: byobu Status: Confirmed = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
** Changed in: byobu Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
This bug was fixed in the package byobu - 3.29-0ubuntu1 --- byobu (3.29-0ubuntu1) natty; urgency=low [ Dustin Kirkland ] * usr/share/man/man1/byobu.1: document PS1 workaround, LP: #525552 * usr/share/man/man1/byobu.1: fix minor manpage typo, add SERVICES example * usr/lib/byobu/wifi_quality, usr/share/man/man1/byobu.1: support overriding the default wireless interface, LP: #723260 * usr/share/man/man1/byobu.1: document TERM=vt100 for Mac keyboard users, LP: #482623 * usr/bin/byobu-janitor: use readlink, much more graceful * usr/lib/byobu/time_binary, usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1: fixup a couple of minor issues with the binary clock commit * usr/bin/byobu-status: switch the interpreter from sh to bash; this is needed to support James' time_binary script, which is bash and cannot be simply sourced by byobu-status; if significant performance regressions occur, we will need to back this change out and approach it a different way [ James Hunt ] * etc/byobu/statusrc, usr/bin/byobu-config, usr/lib/byobu/time_binary, usr/share/byobu/profiles/common, usr/share/man/man1/byobu.1: - add support for the super-geeky-but-fun binary clock; requires UTF8 support in GNU Screen, LP: #705037 [ Chow Loong Jin and Dustin Kirkland ] * usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works with raid, lvm, dm volumes, LP: #709224, #711373, #723187 -- Dustin Kirkland kirkl...@ubuntu.com Wed, 23 Feb 2011 16:24:38 -0600 ** Changed in: byobu (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
I can confirm this on CentOS 5.5. I have compiled byobu 3.27 from source. deflogin is set to on but still PS1 is lost within byobu. all goes well when running just screen. moving PS1 from .profile to .bashrc fix the issue though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
Reopening this bug per the last comment. Bummer. I think the next step, then, is to go through ~/.byobu/profile commenting out each line starting at the end, working your way backwards, until we find the screen configuration setting that's breaking this in Byobu, but allowing it to work in Screen. ** Changed in: byobu (Ubuntu) Status: Fix Released = Confirmed ** Changed in: byobu Status: Fix Committed = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
Okay, I'm going to explicitly set deflogin on in /usr/share/byobu/profiles/common. Can you give the next release a try and let me know? Also, can you give me a very explicit set of testing instructions? Thanks!! ** Changed in: byobu Status: Incomplete = Fix Committed ** Also affects: byobu (Ubuntu) Importance: Undecided Status: New ** Changed in: byobu (Ubuntu) Importance: Undecided = Low ** Changed in: byobu (Ubuntu) Status: New = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
** Branch linked: lp:byobu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
This bug was fixed in the package byobu - 3.26-0ubuntu1 --- byobu (3.26-0ubuntu1) natty; urgency=low [ Dustin Kirkland ] * usr/bin/byobu-reconnect-sockets, usr/lib/byobu/date, usr/share/byobu/keybindings/f-keys, usr/share/byobu/keybindings/screen-escape-keys: - add a ctrl-f5 keybinding for reconnecting sockets * usr/share/byobu/profiles/common: explicitly set deflogin on, LP: #525552 [ swalker sdwal...@myrealbox.com ] * A set of fixes for LP: #700911 * usr/bin/byobu-status, usr/bin/byobu-status-detail: - improve support for byobu-status-detail on systems without vim * usr/lib/byobu/mail: test for mail dir, avoids errors * usr/lib/byobu/reboot_required: test for file existence, avoids errors [ Dustin Kirkland + swalker sdwal...@myrealbox.com ] * usr/lib/byobu/wifi_quality: avoid potential divide by zero error * usr/lib/byobu/fan_speed: add support for /proc/i8k for some other systems' fan speeds (e.g. Dell Inspiron), LP: #700204 -- Dustin Kirkland kirkl...@ubuntu.com Sun, 23 Jan 2011 16:28:45 -0600 ** Changed in: byobu (Ubuntu) Status: Fix Committed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 525552] Re: Byobu overwrites shell prompt setting
** Branch linked: lp:ubuntu/byobu -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/525552 Title: Byobu overwrites shell prompt setting -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs