From dedc7f6f03cbdea41a851779af83db19893c5558 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 20 Mar 2016 12:20:39 +0100 Subject: Fix acpi check in nim prompt --- share/tools/web_config/sample_prompts/nim.fish | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'share/tools') diff --git a/share/tools/web_config/sample_prompts/nim.fish b/share/tools/web_config/sample_prompts/nim.fish index 87837bf8..347af1d4 100644 --- a/share/tools/web_config/sample_prompts/nim.fish +++ b/share/tools/web_config/sample_prompts/nim.fish @@ -47,16 +47,7 @@ function fish_prompt set_color -o green echo -n ] - # Check if acpi exists - if not set -q __fish_nim_prompt_has_acpi - if type acpi > /dev/null - set -g __fish_nim_prompt_has_acpi '' - else - set -g __fish_nim_prompt_has_acpi '' # empty string - end - end - - if test "$__fish_nim_prompt_has_acpi" + if type -q acpi if [ (acpi -a 2> /dev/null | grep off) ] echo -n '─[' set_color -o red -- cgit v1.2.3