From 38ee6decf2d60fa38775a74caf631a555188edca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Thu, 28 Apr 2016 09:56:06 +0800 Subject: [PATCH] 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 \e[1;3m\e[0m: \w\n$ ' +SHELL_D=$( id -G | grep -qE '\<(544|0)\>' && echo "#" || echo "\$" ) + +export PS1='This is \e[1;3m\e[0m: \w\n$SHELL_D ' export EDITOR=vim # User specific aliases and functions