bashrc & zshrc: show hostname and uptime on shell start.

This commit is contained in:
Mika Suomalainen 2012-08-06 20:04:58 +03:00
parent 64e8b14733
commit 91601c8989
2 changed files with 6 additions and 0 deletions

3
bashrc
View File

@ -128,6 +128,9 @@ fi
#Shopt settings. #Shopt settings.
#shopt -s autocd #shopt -s autocd
# Show the hostname and uptime on shell start
hostname && uptime
##### Environment 7RS56S ##### ##### Environment 7RS56S #####
# Environment should be placed to .environment or .bash_environment (or .bashenv). # Environment should be placed to .environment or .bash_environment (or .bashenv).

3
zshrc
View File

@ -50,6 +50,9 @@ zstyle ':completion:*' verbose true
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31' 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 and uptime on shell start
hostname && uptime
##### 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).