aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-11-14 19:47:40 -0500
committerMitch Riedstra <mitch@riedstra.us>2018-11-14 19:47:40 -0500
commit332cde0657ee0b547fc7df5b299519ba3aafe0bd (patch)
tree336ad13df45936190fb4b069b32edcff4a605cf9
parentfd00cff3d6e139ff31951ad3e60a95f8c358d6ff (diff)
downloaddotfiles-332cde0657ee0b547fc7df5b299519ba3aafe0bd.tar.gz
dotfiles-332cde0657ee0b547fc7df5b299519ba3aafe0bd.tar.xz
Wrong usage of id
-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