Sfoglia il codice sorgente

Add safe_cowsay

master
10sr 6 anni fa
parent
commit
20d9f76bed
Firmato da: 10sr ID Chiave GPG: 7BEC428194130EB2
1 ha cambiato i file con 11 aggiunte e 13 eliminazioni
  1. +11
    -13
      shrc

+ 11
- 13
shrc Vedi File

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

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
then
hostname -s | figlet | lolcat
echo `whoami`@`hostname` | figlet | lolcat
fi

uname -a


Caricamento…
Annulla
Salva