Root prompt added

This commit is contained in:
root 2020-02-15 16:32:34 +01:00
parent bd9bdbc97b
commit d8838c6b17
2 changed files with 6 additions and 1 deletions

4
add
View File

@ -2,8 +2,10 @@
# #
if [[ -e $1 ]]; then if [[ -e $1 ]]; then
target=`basename $1` target=`basename $1`
if [[ $target == "venv_prompt.sh" ]]; then if [[ $target == "root_prompt.sh" ]]; then
target="10_$target" target="10_$target"
elif [[ $target == "venv_prompt.sh" ]]; then
target="20_$target"
else else
target="50_$target" target="50_$target"
fi fi

3
available/root_prompt.sh Normal file
View File

@ -0,0 +1,3 @@
PS1="\033[1;31m$PS1\033[00m"
export PS1