bashrc & zshrc: don't wait for hostname, uptime & who & last.

This commit is contained in:
Mikaela Suomalainen 2014-05-23 09:49:50 +03:00
parent b34475c13c
commit f896c88e89
2 changed files with 18 additions and 18 deletions

18
bashrc
View File

@ -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
View File

@ -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 #####