fish: Replace root check with UID check

This commit is contained in:
Sijmen 2018-11-25 21:52:21 +01:00
parent 96fc54c91e
commit 160e455ff5

View file

@ -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