From 2c439dcba4a940f2e0e2650e7e5590d96f256586 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 16 Dec 2019 16:34:33 -0800 Subject: [PATCH] Aggressive escaping in PS1 --- dotfiles/bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index 11ec4d9..35a35ab 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -36,4 +36,4 @@ export PROMPT_DIRTRIM=2 # Important note for PS1 modification - everything non-printable must be escaped with `\[` and `\]`. Otherwise readline # fails to track the prompt right and things get messed up when you input long strings. export PS1=\ -'\[$bold\]\[$white\]\u@\h\[$reset\]\[:\] \[$bold\]\[$blue\]\w\[$reset\] \[$green\]\[$(parse_git_branch)\]\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' +'\[$bold\]\[$white\]\u\[@\]\h\[$reset\]\[:\]\[ \]\[$bold\]\[$blue\]\w\[$reset\]\[ \]\[$green\]\[$(parse_git_branch)\]\[$reset\]\[$bold\]\[$white\]\[⇨\]\[$reset\]\[ \]'