bashrc & zshrc: run visible commands on different lines

Meaning hostname, uptime and who
This commit is contained in:
Mika Suomalainen 2013-02-17 09:06:07 +02:00
parent b6062f7f76
commit d097b1a170
2 changed files with 8 additions and 2 deletions

5
bashrc
View File

@ -132,7 +132,10 @@ 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 && uptime && echo "" && who -H -w -u hostname
uptime
echo ""
who -H -w -u
##### Environment 7RS56S ##### ##### Environment 7RS56S #####
# Environment should be placed to .environment or .bash_environment. # Environment should be placed to .environment or .bash_environment.

5
zshrc
View File

@ -73,7 +73,10 @@ 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 && uptime && echo "" && who -H -w -u hostname
uptime
echo ""
who -H -w -u
##### Environment 7RS56S ##### ##### Environment 7RS56S #####
# Environment should be placed to .environment or .zsh_environment (or .zshenv). # Environment should be placed to .environment or .zsh_environment (or .zshenv).