diff --git a/functions/_tide_item_sudo.fish b/functions/_tide_item_sudo.fish index 69fd5b0..ece50ed 100644 --- a/functions/_tide_item_sudo.fish +++ b/functions/_tide_item_sudo.fish @@ -1,5 +1,3 @@ function _tide_item_sudo - if sudo -n true 2>/dev/null - _tide_print_item sudo $tide_sudo_icon - end + test "$EUID" != 0 && sudo -n true 2>/dev/null && _tide_print_item sudo $tide_sudo_icon end