mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
bashrc & zshrc: don't wait for hostname, uptime & who & last.
This commit is contained in:
parent
b34475c13c
commit
f896c88e89
18
bashrc
18
bashrc
@ -146,19 +146,19 @@ fi
|
||||
#shopt -s autocd
|
||||
|
||||
# Show the hostname, uptime and users logged in on shell start
|
||||
hostname
|
||||
uptime
|
||||
echo ""
|
||||
(hostname&)
|
||||
(uptime&)
|
||||
(echo "")
|
||||
if [[ $UNAME != Darwin ]]; then
|
||||
who -H -w -u|head -n10
|
||||
echo ""
|
||||
last -10 -w -x
|
||||
(who -H -w -u|head -n10&)
|
||||
(echo "")
|
||||
(last -10 -w -x&)
|
||||
fi
|
||||
|
||||
if [[ $UNAME = Darwin ]]; then
|
||||
who -H -u|head -n10
|
||||
echo ""
|
||||
last -10
|
||||
(who -H -u|head -n10&)
|
||||
(echo "")
|
||||
(last -10&)
|
||||
fi
|
||||
|
||||
##### Environment 7RS56S #####
|
||||
|
18
zshrc
18
zshrc
@ -79,20 +79,20 @@ zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
||||
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
|
||||
# Show the hostname, uptime and users logged in on shell start
|
||||
hostname
|
||||
uptime
|
||||
echo ""
|
||||
(hostname&)
|
||||
(uptime&)
|
||||
(echo "")
|
||||
|
||||
if [[ $UNAME != Darwin ]] then;
|
||||
who -H -w -u|head -n10
|
||||
echo ""
|
||||
last -10 -w -x
|
||||
(who -H -w -u|head -n10&)
|
||||
(echo "")
|
||||
(last -10 -w -x&)
|
||||
fi
|
||||
|
||||
if [[ $UNAME = Darwin ]]; then
|
||||
who -H -u|head -n10
|
||||
echo ""
|
||||
last -10
|
||||
(who -H -u|head -n10&)
|
||||
(echo "")
|
||||
(last -10&)
|
||||
fi
|
||||
|
||||
##### Environment 7RS56S #####
|
||||
|
Loading…
Reference in New Issue
Block a user