浏览代码

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


正在加载...
取消
保存