mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-29 14:49:31 +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
|
#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
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'
|
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 #####
|
||||||
|
Loading…
Reference in New Issue
Block a user