From d92dd169560522b9978643b8268d399c1cd6aae8 Mon Sep 17 00:00:00 2001 From: Lilo Date: Wed, 4 Dec 2013 15:52:48 +0800 Subject: [PATCH] set UID before use, or it will be null --- themes/numist/fish_prompt.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/numist/fish_prompt.fish b/themes/numist/fish_prompt.fish index 0bf99d2..4befaf4 100644 --- a/themes/numist/fish_prompt.fish +++ b/themes/numist/fish_prompt.fish @@ -43,6 +43,7 @@ function fish_prompt # Prompt set -l prompt + set -l UID (id -u $USER) if [ "$UID" = "0" ] set prompt "$red# " else