14 lines
160 B
Plaintext
14 lines
160 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# Prints the effective username of the current user
|
||
|
|
||
|
PREFIX=''
|
||
|
|
||
|
get_username()
|
||
|
{
|
||
|
USERNAME=$(whoami)
|
||
|
|
||
|
echo "$PREFIX $USERNAME"
|
||
|
}
|
||
|
|
||
|
get_username
|