From 9f4dbbe2f9184be361d0652996ffb5896ef21a65 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Mon, 25 Jul 2022 16:22:54 -0400 Subject: [PATCH] unified appearance of bash and zsh prompt --- bash_tools.sh | 1 - bash_tools/theme_bash.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bash_tools.sh b/bash_tools.sh index 11070d4..df34e8e 100644 --- a/bash_tools.sh +++ b/bash_tools.sh @@ -9,7 +9,6 @@ if [ -n "$ZSH_NAME" ]; then SHELL_NAME=zsh DOTFILE_DIR=${0:a:h}/ source $DOTFILE_DIR/bash_tools/theme_zsh.sh - elif [ -n "$SHELL" ];then SHELL_NAME=bash DOTFILE_DIR=$(dirname ${BASH_SOURCE[0]})/ diff --git a/bash_tools/theme_bash.sh b/bash_tools/theme_bash.sh index b84bdae..9910eb5 100644 --- a/bash_tools/theme_bash.sh +++ b/bash_tools/theme_bash.sh @@ -1,4 +1,4 @@ # display git status export GIT_PS1_SHOWDIRTYSTATE=1 -export PS1='\[\e[0;32m\]\w\[\e[01;31m\]$(__git_ps1 " (%s)")\[\e[00m\]$ ' +export PS1=' \[\e[0;32m\]\w\[\e[01;31m\]$(__git_ps1 "(%s)")\[\e[00m\]$ '