mirror of https://git.envs.net/envs/finger.git
add user pronouns
This commit is contained in:
parent
b2b177e970
commit
b8ebe8d6c4
4
list
4
list
|
@ -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
28
luser
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue