From 48ff28b3d077ccd1b3961244b239c23d4d93fbfc Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 18 Mar 2019 21:31:40 -0500 Subject: [PATCH] * 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 --- debian/changelog | 6 ++++++ usr/share/byobu/profiles/bashrc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index eda83fd0..133de16d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 12 Aug 2018 11:37:11 -0500 diff --git a/usr/share/byobu/profiles/bashrc b/usr/share/byobu/profiles/bashrc index 6e3ebbfc..17cb34ed 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -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