diff --git a/.bashrc b/.bashrc index 764a50c..6de055f 100644 --- a/.bashrc +++ b/.bashrc @@ -65,18 +65,15 @@ promptsetup() { local mixin # [hh:mm][username@hostname pwd]$ - if [ -n "$SSH_CLIENT" ]; then - # Remotely, hostname is red. - hostname="${fg_brightred}\h${reset}" - elif [ -n "$VIRTUAL_ENV" ]; then - # If in a vcsh repo env, add repo name in magenta. - mixin=" ${fg_green}$(basename $VIRTUAL_ENV)${reset}" + # Remotely, hostname is red. + [ -n "$SSH_CLIENT" ] && hostname="${fg_brightred}\h${reset}" - elif [ -n "$VCSH_REPO_NAME" ]; then - # If in a vcsh repo env, add repo name in magenta. - mixin=" ${fg_magenta}$VCSH_REPO_NAME${reset}" - fi + # If in a python venv, add venv name in green. + [ -n "$VIRTUAL_ENV" ] && mixin=" ${fg_green}$(basename $VIRTUAL_ENV)${reset}" + + # If in a vcsh repo env, add repo name in magenta. + [ -n "$VCSH_REPO_NAME" ] && mixin=" ${fg_magenta}$VCSH_REPO_NAME${reset}" PS1="${fg_blue}[\A]${fg_cyan}[${fg_brightcyan}\u${fg_cyan}@${hostname}${mixin} ${fg_cyan}\W]${reset}\$ " }