瀏覽代碼

Add safe_cowsay

master
10sr 6 年之前
父節點
當前提交
20d9f76bed
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 1 個檔案被更改,包括 11 行新增13 行删除
  1. +11
    -13
      shrc

+ 11
- 13
shrc 查看文件

@@ -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


Loading…
取消
儲存