建议在root用户的终端下,也安装on my zsh,设置与普通用户不同的主题以便区分,插件可以使用一样的。root用户的~/.zshrc配置,仅供参考: ZSH_THEME="ys"plugins=(git zsh-autosuggestions zsh-syntax-highlighting)# 或plugins=(git colored-man-pages colorize cp man command-not-found sudo suse ubuntu archlinux ...
Oh My Zsh默认是只启用git插件,在zshrc文件可见: plugins=(git) 我们需要添加常用插件: zsh-syntax-highlighting zsh-autosuggestions ps:关于oh-my-zsh插件的管理 关于oh-my-zsh的管理是很简单的,有两个插件目录,其中user为你的用户名: (1)/Users/user/.oh-my-zsh/plugins:oh-my-zsh官方插件目录,该目录已...
从gitee下载 oh-my-zsh REMOTE=https://gitee.com/mirrors/oh-my-zsh.git sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"分享至 投诉或建议评论 赞与转发0 0 0 0 0 回到旧版 顶部登录哔哩哔哩,高清视频免费看! 更多登录后权益等你解锁...
sudo aptinstallgit zsh -y 2.然后使用curl或者wget工具进行在线安装 使用curl 安装 sh -c"$(curl -fsSL https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)" 使用wget 安装 sh -c"$(wget -O- https://gitee.com/pocmon/ohmyzsh/raw/master/tools/install.sh)" 插件 zsh-syntax-highli...
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh 找到以下部分 # Default settingsZSH=${ZSH:-~/.oh-my-zsh}REPO=${REPO:-ohmyzsh/ohmyzsh}REMOTE=${REMOTE:-https://github.com/${REPO}.git}BRANCH=${BRANCH:-master} ...
oh-my-zsh皮肤 https://github.com/romkatv/powerlevel10k 自动补全插件 下载incr 自动补全插件http://mimosa-pudica.net/src/incr-0.2.zsh 将插件放在 oh-my-zsh 自定义插件目录中 img 打开oh-my-zsh 配置文件 vim ~/.zshrc img 在plugins中添加incr ...
三个插件:自动补全、高亮、建议zsh-syntax-highlightingzsh-autosuggestionszsh-completions,下面用的都是链接到gitee的镜像 参考来源:终端工具oh-my-zsh与p10k国内镜像安装 git clone https://gitee.com/yuhldr/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &&...
REPO=${REPO:-mirrors/oh-my-zsh} REMOTE=${REMOTE:-https://gitee.com/${REPO}.git} 编辑后保存, 运行安装即可. (运行前先给install.sh权限) 修改仓库地址 cd ~/.oh-my-zsh git remote set-url origin https://gitee.com/mirrors/oh-my-zsh.git git pull 原文地址: https://touka.dev/tech/...
国内按照oh-my-zsh总是失败,可以借鉴下其他博主的下面的方式安装。 我比较推荐的主题是maran vi ~/.zshrc ZSH_THEME="maran" 可以调成主题为random,多尝试几次,看看哪个更适合自己些。 每次source 主题就会随机变化。 source ~/.zshrc 1. 2. 3.
可以直接在终端打开~/.zshrc 文件并编辑,以配置插件,主题等。也可以直接找到该文件打开编辑 编辑时需要按 i 键进入 insert 模式 编辑完成后按 esc,输入 :wq! ,即可保存成功 修改主题 修改ZSH_THEM 为 random可使每次打开都是一个随机的主题 其他主题:https://github.com/ohmyzsh/ohmyzsh/wiki/Themes也可以在...