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 #shopt -s autocd
# Show the hostname, uptime and users logged in on shell start # Show the hostname, uptime and users logged in on shell start
hostname (hostname&)
uptime (uptime&)
echo "" (echo "")
if [[ $UNAME != Darwin ]]; then if [[ $UNAME != Darwin ]]; then
who -H -w -u|head -n10 (who -H -w -u|head -n10&)
echo "" (echo "")
last -10 -w -x (last -10 -w -x&)
fi fi
if [[ $UNAME = Darwin ]]; then if [[ $UNAME = Darwin ]]; then
who -H -u|head -n10 (who -H -u|head -n10&)
echo "" (echo "")
last -10 (last -10&)
fi fi
##### Environment 7RS56S ##### ##### 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' zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
# Show the hostname, uptime and users logged in on shell start # Show the hostname, uptime and users logged in on shell start
hostname (hostname&)
uptime (uptime&)
echo "" (echo "")
if [[ $UNAME != Darwin ]] then; if [[ $UNAME != Darwin ]] then;
who -H -w -u|head -n10 (who -H -w -u|head -n10&)
echo "" (echo "")
last -10 -w -x (last -10 -w -x&)
fi fi
if [[ $UNAME = Darwin ]]; then if [[ $UNAME = Darwin ]]; then
who -H -u|head -n10 (who -H -u|head -n10&)
echo "" (echo "")
last -10 (last -10&)
fi fi
##### Environment 7RS56S ##### ##### Environment 7RS56S #####