我怎样才能在我的终端上添加有趣的东西,这样当我每天破坏所有东西时,我就有额外的活力!:D 我正在学习 C / C ++,并且认为根项目和自定义终端会是一种有趣的练习方式,因为这就是我所热衷的。
/ \ / \
__ ___ ___ ______ __ ___ ___ | |_______/\______| |
/ \ | | | | | |_ \ / \ | | | | _\_/_________________\_/_
/ __ \| | | | | | \ \ / __ \| |__| |_/ \_
| | | | | | | | | \ \| | | |_____ |_B-E-A_M-M-E-U-P-S-C-O-T-T-Y_|
| | | | | | | | | / /| | | | | | \_________________________/
| | | | |____| |_____| |_/ / | | | |____| | \ \ |__| / /
|_| |_|______|_______|_____/ |_| |_|______| \ \ // \\ / /
| /| |\ |
|_*\__/*_|
\______/
答案1
无需编码。
- 将您喜欢的徽标保存到主文件夹中的某个 txt 文件中。
- 使用文本编辑器打开 shell 的配置文件。在我的shell 中,配置
mksh
文件如下:.mkshrc
bash
.bashrc
cat myawesomestuff.txt
在文件末尾添加命令。- 重新启动 shell 或运行
source .bashrc
(就我而言source .mkshrc
)
下面是示例。我还有另一个程序,fortune
每次启动 shell 时都会运行,所以不要对引号感到惊讶
$ nano awesome.txt
$ nano .mkshrc
$ source .mkshrc
Q: What's the difference between the 1950's and the 1980's?
A: In the 80's, a man walks into a drugstore and states loudly, "I'd
like some condoms," and then, leaning over the counter, whispers,
"and some cigarettes."
/ \ / \
__ ___ ___ ______ __ ___ ___ | |_______/\______| |
/ \ | | | | | |_ \ / \ | | | | _\_/_________________\_/_
/ __ \| | | | | | \ \ / __ \| |__| |_/ \_
| | | | | | | | | \ \| | | |_____ |_B-E-A_M-M-E-U-P-S-C-O-T-T-Y_|
| | | | | | | | | / /| | | | | | \_________________________/
| | | | |____| |_____| |_/ / | | | |____| | \ \ |__| / /
|_| |_|______|_______|_____/ |_| |_|______| \ \ // \\ / /
| /| |\ |
|_*\__/*_|
\______/