Browse Source

Root prompt added

master
root 4 years ago
parent
commit
d8838c6b17
2 changed files with 6 additions and 1 deletions
  1. 3
    1
      add
  2. 3
    0
      available/root_prompt.sh

+ 3
- 1
add View File

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

+ 3
- 0
available/root_prompt.sh View File

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

Loading…
Cancel
Save