Browse Source

Aggressive escaping in PS1

master
Taylor Bockman 5 years ago
parent
commit
85a3154557
  1. 2
      dotfiles/bash/bashrc

2
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\]\[ \]'

Loading…
Cancel
Save