mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-21 18:59:22 +01:00
{bash,zsh}rc: don't lookup user locations, causes queries of random tmux domains
This commit is contained in:
parent
81e8ef2754
commit
5aa7f8ec1f
@ -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"
|
||||
|
4
rc/zshrc
4
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
|
||||
|
Loading…
Reference in New Issue
Block a user