Browse Source

shrc: use cowsay for startup message

pull/1/head
10sr 10 years ago
parent
commit
4466c94088
1 changed files with 14 additions and 5 deletions
  1. +14
    -5
      shrc

+ 14
- 5
shrc View File

@@ -254,12 +254,21 @@ fi
###################### ######################
# Print welcome messages # Print welcome messages


type fortune >/dev/null 2>&1 && {
fortune
echo
fortune -o
echo
command -v fortune >/dev/nul && {
if command -v cowsay >/dev/null
then
fortune | cowsay
echo
fortune -o | cowsay
echo
else
fortune
echo
fortune -o
echo
fi
} }

uname -a uname -a
$iswindows && alias tty="echo cmd.exe" $iswindows && alias tty="echo cmd.exe"
echo TERM $TERM with $(tput colors) colors using $(tty) echo TERM $TERM with $(tput colors) colors using $(tty)


Loading…
Cancel
Save