【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

相关推荐
轻松Ai享生活1 天前
5 节课深入学习Linux Cgroups
linux
christine-rr1 天前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神5551 天前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆1 天前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
乌萨奇也要立志学C++1 天前
【Linux】进程概念(二):进程查看与 fork 初探
linux·运维·服务器
绿箭柠檬茶1 天前
Ubuntu 服务器配置转发网络访问
服务器·网络·ubuntu
风_峰1 天前
Ubuntu Linux SD卡分区操作
嵌入式硬件·ubuntu·fpga开发
獭.獭.1 天前
Linux -- 信号【上】
linux·运维·服务器
hashiqimiya1 天前
centos配置环境变量jdk
linux·运维·centos
hashiqimiya1 天前
权限更改centos中系统文件无法创建文件夹,使用命令让普通用户具备操作文件夹
linux