Browse Source

Aggressive escaping in PS1

Taylor Bockman 5 years ago
parent
commit
2c439dcba4
  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 # 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. # fails to track the prompt right and things get messed up when you input long strings.
export PS1=\ 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