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
相关推荐
凡人叶枫1 小时前
Effective C++ 条款28:避免使用 handles 指向对象内部
linux·服务器·开发语言·c++·嵌入式开发
AI帮小忙1 小时前
Debian系linux操作系统里安装OpenClaw
linux·运维·debian
极创信息1 小时前
Linux挖矿病毒深度清理实战教程,从进程隐藏、Rootkit驻留到彻底根除
java·大数据·linux·运维·安全·tomcat·健康医疗
志栋智能2 小时前
超自动化巡检剧本(Playbook):运维经验的数字化封装
运维·自动化
风味蘑菇干2 小时前
WTomcat服务器
java·服务器
ElevenS_it1882 小时前
Nginx日志监控告警实战:access_log解析+5xx突增+慢请求+异常IP自动告警完整方案(Filebeat+Zabbix)
运维·网络·tcp/ip·nginx·zabbix
weixin_307779132 小时前
Python写入Shell文件使用Linux系统的换行符
linux·开发语言·python·自动化
liulilittle3 小时前
Linux Swap 文件配置与持久化(虚拟内存)
linux·运维·服务器
未若君雅裁3 小时前
日志采集与ELK:从本地日志到集中检索分析
运维·elk·jenkins
青梅橘子皮3 小时前
Linux---进程控制(2)(进程程序替换)
linux·c++·算法