From 5aa7f8ec1f7322980b173c0d7f337efe8708fc14 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 28 Jul 2024 11:03:09 +0300 Subject: [PATCH] {bash,zsh}rc: don't lookup user locations, causes queries of random tmux domains --- rc/bashrc | 4 ++-- rc/zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index cf2e19a5..87adba1c 100755 --- a/rc/bashrc +++ b/rc/bashrc @@ -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" diff --git a/rc/zshrc b/rc/zshrc index 16874a9d..501d15f4 100755 --- a/rc/zshrc +++ b/rc/zshrc @@ -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