ubuntu软件推荐(2):终端美化 tabby+oh-my-zsh

文章目录

  • 一、tabby下载
  • 二、tabby安装
  • 三、安装Oh-my-zsh
    • [1. 安装zsh](#1. 安装zsh)
    • [2. 设置默认终端为zsh](#2. 设置默认终端为zsh)
    • [3. 下载安装oh-my-zsh](#3. 下载安装oh-my-zsh)
    • [3. 根据自己喜好安装字体(略)](#3. 根据自己喜好安装字体(略))
    • [4. 在tabby终端修改字体](#4. 在tabby终端修改字体)
    • [5. 安装oh-my-zsh插件](#5. 安装oh-my-zsh插件)
    • [6. 修改主题+插件生效](#6. 修改主题+插件生效)

一、tabby下载

https://github.com/Eugeny/tabby/releases/


二、tabby安装

  1. 打开终端的快捷键:Ctrl+Alt+T
  2. 安装依赖
bash 复制代码
sudo apt-get install gconf2 gconf-service -y
sudo apt --fix-broken install
  1. 进入下载好的tabby路径
  2. 输入 sudo dpkg -i tabby-x.x.xxx-linux-x64.deb
  3. 在软件表中找图标运行。设置Tabby
  4. 在设置中,可以进行一些基础的设置,比如配色方案,透明,窗口的方向等。
  5. 将tabby设置为默认窗口,通过快捷键打开。
bash 复制代码
gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/tabby
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x"

还原为原来的设置:

bash 复制代码
gsettings reset org.gnome.desktop.default-applications.terminal exec
gsettings reset org.gnome.desktop.default-applications.terminal exec-arg

三、安装Oh-my-zsh

1. 安装zsh

bash 复制代码
sudo apt install zsh -y #安装zsh
cat /etc/shells #查看shells
zsh --version#查看版本

2. 设置默认终端为zsh

bash 复制代码
chsh -s $(which zsh)#设置终端默认shell为zsh
sudo reboot#重启系统

3. 下载安装oh-my-zsh

bash 复制代码
git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git
cd ohmyzsh/tools
REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
git -C $ZSH remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git
git -C $ZSH pull

3. 根据自己喜好安装字体(略)

4. 在tabby终端修改字体

5. 安装oh-my-zsh插件

高亮命名

bash 复制代码
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

命令补全

bash 复制代码
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

目录跳转

bash 复制代码
sudo apt-get install autojump

6. 修改主题+插件生效

bash 复制代码
sudo vim ~/.zshrc


设置完成后输入

bash 复制代码
source ~/.zshrc

相关推荐
leo__5207 分钟前
在Ubuntu中设置开机自动运行(sudo)指令的指南
服务器·ubuntu·postgresql
Leo.yuan20 分钟前
数据湖是什么?数据湖和数据仓库的区别是什么?
大数据·运维·数据仓库·人工智能·信息可视化
程序员JerrySUN41 分钟前
Linux 内核内存管理子系统全面解析与体系构建
java·linux·运维
CIb0la1 小时前
Ai自动补全编程工具:llama vscode
运维·开发语言·学习·测试工具·程序人生
rui锐rui1 小时前
大模型模型部署和暴露接口
linux·运维·服务器
BJ_Bonree1 小时前
博睿数据×华为, 共筑智慧金融新未来
运维
孙克旭_1 小时前
day030-Shell自动化编程-函数
linux·运维·自动化
IT葛大侠1 小时前
OSPF域内路由
运维·网络·计算机网络
面朝大海,春不暖,花不开4 小时前
管理数据洪流:自动化处理与归档每日数据文件的策略与实践
运维·python·自动化
派阿喵搞电子7 小时前
在UI界面内修改了对象名,在#include “ui_mainwindow.h“没更新
c++·qt·ubuntu·ui