* usr/share/byobu/profiles/bashrc:

- Unescaping colors in bash prompt causes problems with scrolling
    history in bash prompt. you can see leftovers from previous
    commands when going back by history.
    All colors in command prompt should be escaped with [ ]
  - https://github.com/dustinkirkland/byobu/pull/30
This commit is contained in:
Dustin Kirkland 2019-03-18 21:31:40 -05:00
commit 48ff28b3d0
2 changed files with 7 additions and 1 deletions

6
debian/changelog vendored
View file

@ -11,6 +11,12 @@ byobu (5.128) unreleased; urgency=medium
- use env python3 for portability to other Linux and Mac systems
(hopefully that's still okay for Debian / Ubuntu?)
- https://github.com/dustinkirkland/byobu/pull/29
* usr/share/byobu/profiles/bashrc:
- Unescaping colors in bash prompt causes problems with scrolling
history in bash prompt. you can see leftovers from previous
commands when going back by history.
All colors in command prompt should be escaped with [ ]
- https://github.com/dustinkirkland/byobu/pull/30
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 12 Aug 2018 11:37:11 -0500

View file

@ -54,7 +54,7 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then
;;
*)
# Use Googley colors (blue / red / yellow / blue / green / red )
PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$(byobu_prompt_status)\[\e[38;5;69m\]\u\[\e[38;5;214m\]@\[\e[38;5;167m\]\h\[\e[38;5;214m\]:\[\e[38;5;71m\]\w\[\e[38;5;214m\]\$(byobu_prompt_symbol)\e[00m\] "
PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$(byobu_prompt_status)\[\e[38;5;69m\]\u\[\e[38;5;214m\]@\[\e[38;5;167m\]\h\[\e[38;5;214m\]:\[\e[38;5;71m\]\w\[\e[38;5;214m\]\$(byobu_prompt_symbol)\[\e[00m\] "
;;
esac
fi