add user pronouns

This commit is contained in:
creme 2020-03-08 10:25:00 +00:00
parent b2b177e970
commit b8ebe8d6c4
2 changed files with 20 additions and 12 deletions

4
list
View File

@ -19,9 +19,9 @@ https://envs.net/
EOM
if [ "$1" = "(null)" ]; then
printf "hello %s,\n" "$2"
printf "\n\nhello %s,\n" "$2"
else
printf "hello %s@%s\n" "$1" "$2"
printf "\n\nhello %s@%s\n" "$1" "$2"
fi
printf "users currently logged in are:\n\n"

28
luser
View File

@ -29,20 +29,28 @@ else
user_folder="/home/${3}"
# /usr/bin/finger -m "$3"
# Project
printf "Project:\\n"
if [ -f "${user_folder}/.project" ]; then
sed 's/^/ /' "${user_folder}/.project"
else
printf "No Project.\\n"
fi
# Plan
printf "Plan:\\n"
if [ -f "${user_folder}/.plan" ]; then
sed 's/^/ /' "${user_folder}/.plan"
else
printf "No Plan.\\n"
printf "No Plan.\n"
fi
# Pronouns
printf "Pronouns:\\n"
if [ -f "${user_folder}/.pronouns" ]; then
sed 's/^/ /' "${user_folder}/.pronouns"
else
printf "No Pronouns.\n"
fi
# Project
printf "Project:\\n"
if [ -f "${user_folder}/.project" ]; then
sed 's/^/ /' "${user_folder}/.project"
else
printf "No Project.\n"
fi
# Timezone
@ -54,7 +62,7 @@ else
# Online status
if finger "$3" | grep -q 'On since'; then
printf "Online.\\n"
printf "Online.\n"
fi
fi