简体   繁体   English

清除终端后如何显示终端横幅

[英]How do I display a terminal banner after clearing the terminal

so I set up my terminal banner with figlet and I really like it.所以我用 figlet 设置了我的终端横幅,我真的很喜欢它。 But it will only be displayed after opening a new terminal.但只有在打开新终端后才会显示。 My question is: Can I somehow display a banner after I hit "clear"?我的问题是:我可以在点击“清除”后以某种方式显示横幅吗?

You'll have to edit your .bashrc file and add the following line:您必须编辑 .bashrc 文件并添加以下行:

alias clear='clear && (the figlet command you use)' 

Then it will start up every time you type clear.然后每次您键入 clear 时它都会启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM