Root prompt added
This commit is contained in:
parent
bd9bdbc97b
commit
d8838c6b17
4
add
4
add
@ -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
3
available/root_prompt.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PS1="\033[1;31m$PS1\033[00m"
|
||||||
|
export PS1
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user