diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-03-20 12:20:39 +0100 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-03-20 12:20:39 +0100 |
commit | dedc7f6f03cbdea41a851779af83db19893c5558 (patch) | |
tree | dc35b2c108f54337d34ad0fa1e84840fa8b0466b /share/tools | |
parent | de0349399c5fcf0aa624e6607c17fd47fd5301bf (diff) |
Fix acpi check in nim prompt
Diffstat (limited to 'share/tools')
-rw-r--r-- | share/tools/web_config/sample_prompts/nim.fish | 11 |
1 files changed, 1 insertions, 10 deletions
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 |