GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
FISH_IS_ROOT_USER(1) fish-shell FISH_IS_ROOT_USER(1)

fish_is_root_user - check if the current user is root

fish_is_root_user


fish_is_root_user will check if the current user is root. It can be useful for the prompt to display something different if the user is root, for example.

A simple example:

function example --description 'Just an example'
    if fish_is_root_user
        do_something_different
    end
end


2021, fish-shell developers
April 9, 2022 3.3

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.