From 4466c94088aa7757bdeee3f36be090a84be447c4 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 5 Aug 2014 15:20:01 +0900 Subject: [PATCH] shrc: use cowsay for startup message --- shrc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/shrc b/shrc index be35c05..cbc8229 100755 --- a/shrc +++ b/shrc @@ -254,12 +254,21 @@ fi ###################### # 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 $iswindows && alias tty="echo cmd.exe" echo TERM $TERM with $(tput colors) colors using $(tty)