前序
fortune+cowsay+lolcat效果圖(每次打開新的終端的時候, 顯示名言)

fortune
提供我的rpm包, fortune+依賴

安裝它們
rpm -ivh *.rpm
調配中文
把master.zip解壓, data文件夾下面的文件全部扔進/usr/share/games/fortune文件夾下
然后輸入命令就出現名言或者詩詞

cowsay
下載cowsay, 也可以用我的安裝包cowsay
安裝方式也是跟上面的一樣, 畢竟是rpm嘛。
安裝好如下

lolcat
對於lolcat就比較麻煩一點, RubyGems 版本需要更新
gem -v
看一下你的版本, 現在出到2.7.7了
更新
gem update --system
此處需要fq, update這里, 因為是國外資源
移除舊源, 換新國內源
gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
查看當前源是不是china源
gem sources -l
源已換
[root@localhost~]# gem sources -l *** CURRENT SOURCES *** https://gems.ruby-china.com/
下載上面的lolcat-master壓縮包
解壓
unzip lolcat-master.zip cd lolcat-master
gem安裝lolcat
gem install lolcat
驗證一下

下面開始調配
融合
vim /etc/profile.d/lee.sh
內容
#!/bin/bash fortune | cowsay | lolcat
搞掂~
關於為什么要在/etc/profile.d下面放shell, 引用下面一下這個哥們的文章
https://blog.csdn.net/u011277123/article/details/72864826
https://www.cnblogs.com/EasonJim/p/9241410.html
