Merge pull request #32 from dsymbol/master

Added username module
This commit is contained in:
Baitinq 2021-12-14 17:44:45 +00:00 committed by GitHub
commit a0cb7fddca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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