Added username module

This commit is contained in:
dsymbol 2021-12-14 17:39:47 +00:00
parent 0e8e7ab63d
commit d66e4af5a1

14
modules/username Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
# Prints the effective username of the current user
PREFIX=''
get_username()
{
USERNAME=$(whoami)
echo "$PREFIX $USERNAME"
}
get_username