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
相关推荐
秦歌6662 分钟前
Agent Skills详解
服务器·前端·数据库
杨云龙UP6 分钟前
MySQL主库高峰期备份引发504故障:从库手动切换接管 + 主从恢复同步 + Docker版DB2重启实战_2026-05-17
linux·运维·数据库·mysql·docker·容器·centos
lifewange7 分钟前
Vim 统一替换(全局替换)
linux·编辑器·vim
用户23678298016812 分钟前
Linux netstat 命令深度解析:从网络连接到端口监控的完整实现
linux
号码认证服务14 分钟前
小米、OPPO、VIVO手机支持号码认证显示公司名吗?
java·服务器·网络·经验分享·智能手机·云计算·php
曾帅16815 分钟前
linux ubuntu 挂载硬盘
linux·运维·ubuntu
Web极客码24 分钟前
加快WooCommerce性能
服务器·wordpress·网站
Yjiokm24 分钟前
proot-distro 安装指定版本 ubuntu
linux·运维·ubuntu
lifewange30 分钟前
ls -ltr
linux·运维·服务器
不怕犯错,就怕不做31 分钟前
linux的notifier_block内核通知链
linux·驱动开发·嵌入式硬件