From f847328f54ac2b6d80ac1136dfed4071a9c17dc2 Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Mon, 16 Dec 2019 16:28:12 -0800 Subject: [PATCH] Small terminal changes - still having some history issues with PS1 but much better --- dotfiles/bash/bash_profile | 2 ++ dotfiles/bash/bashrc | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dotfiles/bash/bash_profile b/dotfiles/bash/bash_profile index f2c2329..40677a1 100644 --- a/dotfiles/bash/bash_profile +++ b/dotfiles/bash/bash_profile @@ -13,3 +13,5 @@ alias python='python3' 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" diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index dbf7448..11ec4d9 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -8,7 +8,7 @@ if [[ "$OSTYPE" == "darwin"* ]]; then fi parse_git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /' } # If you ever needed weather... @@ -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\] '