Add $EUID and use it in fish_is_root_user

Fixes #8866
This commit is contained in:
Fabian Homborg
2022-04-15 15:57:57 +02:00
parent 51bbbc2a32
commit 2fa51f1843
3 changed files with 9 additions and 0 deletions

View File

@@ -1416,6 +1416,10 @@ Fish also provides additional information through the values of certain environm
the current username. This variable can be changed.
.. ENVVAR:: EUID
the current effective user id, set by fish at startup. This variable can be changed.
.. envvar:: version
the version of the currently running fish (also available as ``FISH_VERSION`` for backward compatibility).