Browse Source

Small terminal changes - still having some history issues with PS1 but much better

master
Taylor Bockman 5 years ago
parent
commit
f847328f54
  1. 2
      dotfiles/bash/bash_profile
  2. 2
      dotfiles/bash/bashrc

2
dotfiles/bash/bash_profile

@ -13,3 +13,5 @@ alias python='python3'
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
eval "$(pyenv virtualenv-init -)"
export PATH="/usr/local/opt/openjdk/bin:$PATH"

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