【Linux】Ubuntu美化bash【教程】

【Linux】Ubuntu美化bash【教程】

1. 查看当前环境中是否有bash

  • 查看当前使用的bash
echo $SHELL

如下所示

sjh@sjhR9000X:~$ echo $SHELL
/bin/bash

2. 安装Synth-Shell

git clone --recursive https://github.com/andresgongora/synth-shell.git
cd synth-shell
sudo chmod +x setup.sh
./setup.sh

然后根据提示安装即可,安装完成后打开新的终端,我们接下来就可以进行配置了,如下所示

Image

3. 配置Synth-Shell

可以更改进行颜色等配置

gedit ~/.config/synth-shell/synth-shell-prompt.config

4. 取消greeter

~/.bashrc文件中

## synth-shell-greeter.sh
if [ -f /home/sjh/.config/synth-shell/synth-shell-greeter.sh ] && [ -n "$( echo $- | grep #i )" ]; then
	source /home/sjh/.config/synth-shell/synth-shell-greeter.sh
fi

将这一段内容注释掉就行了

在这里插入图片描述

Reference

Make Your Bash Shell Beautiful 2022

猜你喜欢

转载自blog.csdn.net/qq_44940689/article/details/133852828