unified appearance of bash and zsh prompt
This commit is contained in:
@@ -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,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\]$ '
|
||||
|
||||
Reference in New Issue
Block a user