fish: Replace root check with UID check
This commit is contained in:
parent
96fc54c91e
commit
160e455ff5
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function fish_prompt
|
|||
|
||||
printf '%s\e[K\n' (__fish_git_prompt | sed -r 's/(\x1B\[0?)m/\139m/')
|
||||
|
||||
if [ "$USER" = "root" ]
|
||||
if [ (id -u) -eq "0" ]
|
||||
set_color red
|
||||
echo -n "# "
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue