penguin/utils

my env utils

commit 38ee6decf2d60fa38775a74caf631a555188edca

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-04-28T01:56:06Z
subjectAdded shelld
commit 38ee6decf2d60fa38775a74caf631a555188edca
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-04-28T01:56:06Z

    Added shelld
---
 bash/bashrc/rbashrc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bash/bashrc/rbashrc b/bash/bashrc/rbashrc
index 263c631..c7df346 100644
--- a/bash/bashrc/rbashrc
+++ b/bash/bashrc/rbashrc
@@ -185,7 +185,9 @@ function rbash_run {
     rm "$TMPFILE";
 }
 
-export PS1='This is <MACHINE_NAME>\e[1;3<COLOR_CODE>m<MACHINE_COLORED_NAME>\e[0m: \w\n$ '
+SHELL_D=$( id -G | grep -qE '\<(544|0)\>' && echo "#" || echo "\$" )
+
+export PS1='This is <MACHINE_NAME>\e[1;3<COLOR_CODE>m<MACHINE_COLORED_NAME>\e[0m: \w\n$SHELL_D '
 export EDITOR=vim
 
 # User specific aliases and functions