From d8838c6b17aaa6704d115e6a6fbf2e470bc4d99f Mon Sep 17 00:00:00 2001 From: root Date: Sat, 15 Feb 2020 16:32:34 +0100 Subject: [PATCH] Root prompt added --- add | 4 +++- available/root_prompt.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 available/root_prompt.sh diff --git a/add b/add index b01f762..a9f0572 100755 --- a/add +++ b/add @@ -2,8 +2,10 @@ # if [[ -e $1 ]]; then target=`basename $1` - if [[ $target == "venv_prompt.sh" ]]; then + if [[ $target == "root_prompt.sh" ]]; then target="10_$target" + elif [[ $target == "venv_prompt.sh" ]]; then + target="20_$target" else target="50_$target" fi diff --git a/available/root_prompt.sh b/available/root_prompt.sh new file mode 100644 index 0000000..ab4f057 --- /dev/null +++ b/available/root_prompt.sh @@ -0,0 +1,3 @@ +PS1="\033[1;31m$PS1\033[00m" +export PS1 +