oh-my-zsh 安装和配置

安装zsh

bash 复制代码
sudo apt update
sudo apt install zsh

安装oh-my-zsh

bash 复制代码
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

配置~/.zshrc

bash 复制代码
sudo vim ~/.zshrc

添加以下内容

vi 复制代码
ZSH_THEME="steeef"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory

plugins=(git history history-substring-search node npm wd web-search last-working-dir zsh-autosuggestions emotty docker)

安装插件

复制代码
git clone https://gitee.com/mirrors/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
相关推荐
Rockbean2 小时前
用40行代码搭建自己的无服务器OCR
服务器·python·deepseek
蝎子莱莱爱打怪4 小时前
Centos7中一键安装K8s集群以及Rancher安装记录
运维·后端·kubernetes
茶杯梦轩5 小时前
CompletableFuture 在 项目实战 中 创建异步任务 的核心优势及使用场景
服务器·后端·面试
崔小汤呀6 小时前
最全的docker安装笔记,包含CentOS和Ubuntu
linux·后端
何中应7 小时前
vi编辑器使用
linux·后端·操作系统
何中应7 小时前
Linux进程无法被kill
linux·后端·操作系统
何中应7 小时前
rm-rf /命令操作介绍
linux·后端·操作系统
何中应7 小时前
Linux常用命令
linux·操作系统
葛立国7 小时前
从 / 和 /dev 说起:Linux 文件系统与挂载点一文理清
linux
海天鹰21 小时前
【免费】PHP主机=域名+解析+主机
服务器