Reveals whomst thou art with a single character.
Available via the Anti-Capitalist Software License for individuals, non-profit organisations, and worker-owned businesses.
Just build omst
for your system and install it in /usr/bin
.
omst
prints one of five characters based upon your effective user permissions:
#
for absolute permissions (i.e. root
, administrator)@
for system users$
for ordinary users%
for restricted users (e.g. nobody
, guest)?
if any error occursIn all cases, the character is followed by a newline. If an error occurs, it may be printed to
stderr
; be sure to suppress this error if you plan to use the character in a prompt.
Currently, unix-family systems (including Linux, Mac OS, and most BSDs) and Windows are supported. Android and iOS support is currently not available.