fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
2fa51f184
master
1# To know if the user is root. Used by several prompts to display something 2# else if the user is root. 3 4function fish_is_root_user --description"Check if the user is root" 5if test " $EUID " = 0 2> /dev/null 6return 0 7end 8 9if contains --$USER root toor Administrator 10return 0 11end 12 13return 1 14end