{bash,zsh}rc: don't lookup user locations, causes queries of random tmux domains

This commit is contained in:
Aminda Suomalainen 2024-07-28 11:03:09 +03:00
parent 81e8ef2754
commit 5aa7f8ec1f
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 4 additions and 4 deletions

View File

@ -144,9 +144,9 @@ if hash lsb_release 2> /dev/null; then
printf "$(uptime --pretty)\t$(uptime)\n"
printf "\nPresent:\n"
if hash who 2> /dev/null; then
who --heading --lookup --mesg --users
who --heading --mesg --users
elif hash last 2> /dev/null; then
last --hostlast --dns --present $(date +%R) --fullnames --system --time-format notime
last --hostlast --present $(date +%R) --fullnames --system --time-format notime
fi
printf "\n"

View File

@ -37,9 +37,9 @@ if hash lsb_release 2> /dev/null; then
printf "$(uptime --pretty)\t$(uptime)\n"
printf "\nPresent:\n"
if hash who 2> /dev/null; then
who --heading --lookup --mesg --users
who --heading --mesg --users
elif hash last 2> /dev/null; then
last --hostlast --dns --present $(date +%R) --fullnames --system --time-format notime
last --hostlast --present $(date +%R) --fullnames --system --time-format notime
fi
printf "\n"
df / $HOME --human-readable --output=source,fstype,size,used,avail,pcent | uniq