From 635a2c13f1e3597ae3260a0d367d8639d4c3dba4 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 1 Apr 2021 14:15:10 +0200 Subject: [PATCH] Sample prompts: Use fish_is_root_user So we don't just check for "root" --- share/tools/web_config/sample_prompts/robbyrussell.fish | 2 +- share/tools/web_config/sample_prompts/sorin.fish | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/tools/web_config/sample_prompts/robbyrussell.fish b/share/tools/web_config/sample_prompts/robbyrussell.fish index 46a170708..e630688ba 100644 --- a/share/tools/web_config/sample_prompts/robbyrussell.fish +++ b/share/tools/web_config/sample_prompts/robbyrussell.fish @@ -72,7 +72,7 @@ function fish_prompt end set -l arrow "$arrow_color➜ " - if test "$USER" = root + if fish_is_root_user set arrow "$arrow_color# " end diff --git a/share/tools/web_config/sample_prompts/sorin.fish b/share/tools/web_config/sample_prompts/sorin.fish index e55b69e0f..c2016988b 100644 --- a/share/tools/web_config/sample_prompts/sorin.fish +++ b/share/tools/web_config/sample_prompts/sorin.fish @@ -13,7 +13,7 @@ function fish_prompt echo -n (set_color blue)(prompt_pwd)' ' set_color -o - if test "$USER" = root + if fish_is_root_user echo -n (set_color red)'# ' end echo -n (set_color red)'❯'(set_color yellow)'❯'(set_color green)'❯ '