Unbreak rendering & wrapping of commands typed at an interactive prompt
... by wrapping the terminal escape sequences in '\[' and '\]': https://www.gnu.org/software/bash/manual/html_node/Controlling-the-Prompt.html https://github.com/debarshiray/toolbox/issues/190
This commit is contained in:
parent
cbef52527f
commit
bc1a816ea3
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ fi
|
|||
|
||||
if [ -f /run/.containerenv ] \
|
||||
&& [ -f /run/.toolboxenv ]; then
|
||||
PS1=$(printf "\033[35m⬢\033[0m%s" "[\u@\h \W]\\$ ")
|
||||
PS1=$(printf "\[\033[35m\]⬢\[\033[0m\]%s" "[\u@\h \W]\\$ ")
|
||||
|
||||
if ! [ -f "$toolbox_welcome_stub" ]; then
|
||||
echo ""
|
||||
|
|
Loading…
Reference in a new issue