aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mkshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/mkshrc b/mkshrc
index 5d21187..ed65754 100644
--- a/mkshrc
+++ b/mkshrc
@@ -98,12 +98,12 @@ set_retro_prompt() {
export PS1='\[$(set_my_title)\]\$ '
elif ! [ -z "$KSH_VERSION" ] ; then
export PS1='$(set_my_title)$ '
- if [ $(id -un) -eq 0 ] ; then
+ if [ $(id -u) -eq 0 ] ; then
export PS1='$(set_my_title)# '
fi
else
export PS1='$ '
- if [ $(id -un) -eq 0 ] ; then
+ if [ $(id -u) -eq 0 ] ; then
export PS1='# '
fi
fi