Browse Source

Add safe_cowsay

master
10sr 6 years ago
parent
commit
20d9f76bed
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 11 additions and 13 deletions
  1. +11
    -13
      shrc

+ 11
- 13
shrc View File

@@ -190,25 +190,23 @@ then
else else
alias __safe_lolcat=cat alias __safe_lolcat=cat
fi fi
if command -v cowsay >/dev/null
then
alias __safe_cowsay=cowsay
else
alias __safe_cowsay=cat
fi


command -v fortune >/dev/null && { command -v fortune >/dev/null && {
if command -v cowsay >/dev/null
then
fortune | cowsay | __safe_lolcat
echo
fortune -o | cowsay | __safe_lolcat
echo
else
fortune | __safe_lolcat
echo
fortune -o | __safe_lolcat
echo
fi
fortune | __safe_cowsay | __safe_lolcat
echo
fortune -o | __safe_cowsay | __safe_lolcat
echo
} }


if null type figlet && null type lolcat if null type figlet && null type lolcat
then then
hostname -s | figlet | lolcat
echo `whoami`@`hostname` | figlet | lolcat
fi fi


uname -a uname -a


Loading…
Cancel
Save