Pit*_*tto 10 customization bash mint
我喜欢 Linux Mint 的 bash 自定义。它包括一个颜色提示和一个用 ASCII 艺术显示的引用。
是否可以在 Ubuntu 中使用它?
and*_*ing 24
文件 ~/.bashrc允许您进行所需的自定义,等等。
首先打开它 gedit ~/.bashrc
现在为了获得多色提示,找到如下所示的行:
#force_color_prompt=yes
取消注释(删除 #)。
现在要获取 ascii 艺术和报价,您需要安装两个包:
sudo apt-get install cowsay fortune
现在~/.bashrc添加一行:
fortune | cowsay
保存文件,然后重新启动终端(或使用 资源文件source ~/.bashrc)。
