color the directory
This commit is contained in:
parent
8626f63fc7
commit
ee0a71fcd6
|
@ -55,6 +55,7 @@ fi
|
|||
COLOR_RESET='\e[0m'
|
||||
PROMPT_SUCCESS_COLOR='\e[0;34m'
|
||||
PROMPT_FAILURE_COLOR='\e[0;31m'
|
||||
DIR_COLOR='\e[0;33m'
|
||||
prompt_command_func()
|
||||
{
|
||||
RET=$?
|
||||
|
@ -63,7 +64,7 @@ prompt_command_func()
|
|||
else
|
||||
STATUS_COLOR=$PROMPT_FAILURE_COLOR
|
||||
fi;
|
||||
PS1="$STATUS_COLOR\u@\h$COLOR_RESET \w > "
|
||||
PS1="$STATUS_COLOR\u@\h$COLOR_RESET $DIR_COLOR\w$COLOR_RESET > "
|
||||
}
|
||||
export PROMPT_COMMAND="prompt_command_func"
|
||||
|
||||
|
|
Reference in a new issue