unified appearance of bash and zsh prompt

This commit is contained in:
Nachuan Tang
2022-07-25 16:22:54 -04:00
parent 05b969cc74
commit 9f4dbbe2f9
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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]})/
+1 -1
View File
@@ -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\]$ '