【Linux】Ubuntu美化bash【教程】

【Linux】Ubuntu美化bash【教程】

文章目录

  • 【Linux】Ubuntu美化bash【教程】
    • [1. 查看当前环境中是否有bash](#1. 查看当前环境中是否有bash)
    • [2. 安装Synth-Shell](#2. 安装Synth-Shell)
    • [3. 配置Synth-Shell](#3. 配置Synth-Shell)
    • [4. 取消greeter](#4. 取消greeter)
    • Reference

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

  • 查看当前使用的bash
bash 复制代码
echo $SHELL

如下所示

bash 复制代码
sjh@sjhR9000X:~$ echo $SHELL
/bin/bash

2. 安装Synth-Shell

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

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

3. 配置Synth-Shell

可以更改进行颜色等配置

bash 复制代码
gedit ~/.config/synth-shell/synth-shell-prompt.config

4. 取消greeter

~/.bashrc文件中

txt 复制代码
## 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

相关推荐
迎仔5 分钟前
A-总览:GPU驱动运维系列总览
linux·运维
tiantangzhixia8 分钟前
Master PDF Linux 平台的 5.9.35 版本安装与自用
linux·pdf·master pdf
yyy的学习记录13 分钟前
Ubuntu下urdf模型转换成proto模型
linux·运维·ubuntu
礼拜天没时间.18 分钟前
自定义镜像制作——从Dockerfile到镜像
linux·docker·容器·centos·bash
xixingzhe218 分钟前
ubuntu安装gitlab
linux·ubuntu·gitlab
强风79426 分钟前
Linux-传输层协议TCP
linux·网络·tcp/ip
looking_for__1 小时前
【Linux】应用层自定义协议与序列化
linux·服务器·网络
云中飞鸿1 小时前
VS编写QT程序,如何向linux中移植?
linux·开发语言·qt
嵌入小生0071 小时前
Standard IO -- Continuation of Core Function Interfaces (Embedded Linux)
linux·vim·嵌入式·标准io·vscode
Zach_yuan1 小时前
传输层之TCP/UDP 核心原理全解析:从协议基础到实战机制
linux·网络协议·tcp/ip·udp