From d3ccdc4cc0a613d859999f54aa744813eb13d5ca Mon Sep 17 00:00:00 2001 From: Sagi Shnaidman Date: Sat, 17 Nov 2018 13:02:34 +0200 Subject: [PATCH] Escape colores in bash prompt 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 \[ \] --- usr/share/byobu/profiles/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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