macbook中安装oh-my-zsh主题详细介绍

简介: macbook中安装oh-my-zsh主题详细介绍

第一步

克隆oh my zsh这个项目到本地

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

第二步

创建一个zsh的配置文件(注:如果之前已经存在,记得备份!)–非必须

cp ~/.zshrc ~/.zshrc.orig

第三步

创建zsh的配置文件

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

第四步

设置zsh为你的默认的shell

chsh -s /bin/zsh

第五步

重新或新开一个终端测试,vscode或其他编辑器终端自行设置默认为zsh

注:idea命令行如果想使用oh my zsh,直接输入“zsh”就可以进入!

强迫症请看

[oh-my-zsh] For safety, we will not load completions from these directories until
[oh-my-zsh] you fix their permissions and ownership and restart zsh.
[oh-my-zsh] See the above list for directories with group or other writability.
[oh-my-zsh] To fix your permissions you can do so by disabling
[oh-my-zsh] the write permission of "group" and "others" and making sure that the
[oh-my-zsh] owner of these directories is either root or your current user.
[oh-my-zsh] The following command may help:
[oh-my-zsh] compaudit | xargs chmod g-w,o-w
[oh-my-zsh] If the above didn't help or you want to skip the verification of
[oh-my-zsh] insecure directories you can set the variable ZSH_DISABLE_COMPFIX to
[oh-my-zsh] "true" before oh-my-zsh is sourced in your zshrc file.

上面这类提示是因为权限不足造成解决方法如下

chmod 755 /usr/local/share/zsh
chmod 755 /usr/local/share/zsh/site-functions

效果

b370687c82654a24b2a5cee49fb5a48c.png

4240396fc67943e38fcecf39ea8838e2.png




目录
相关文章
|
缓存 负载均衡 Dubbo
Sentinel 集群限流设计原理
Sentinel 集群限流设计原理
Sentinel 集群限流设计原理
|
4月前
|
人工智能 运维 监控
用过 Xshell/PuTTY 之后,我为什么把 Xterminal 留在主屏(真实体验对比)
一篇基于真实使用体验的 Xterminal 对比文章,覆盖 SSH 连接、AI 命令助手、图形化 SFTP、端口转发、批量运维和服务器监控,帮助你判断它是否适合作为日常主力终端。
294 1
|
6月前
|
人工智能 移动开发 前端开发
7个神级技巧,彻底去除网站的 AI 味儿!
大家好,我是程序员鱼皮。 先做个小测试,下面这几个网站,你能看出哪些是 AI 做的吗? 公布答案:全都是 AI 做的! 是不是觉得有点意外? “为啥我用 AI 搓出来的网站一股子 AI 味儿?而这些网站看起来干净很多呢?” 这就是接下来我要分享的: 什么是 AI 编程的 AI 味儿? 为什么网站会有 AI 味儿? 怎么去除网站的 AI 味儿? 点个收藏,我们开始 ⭐️ 推荐观看本文对应视频版,效果
815 0
7个神级技巧,彻底去除网站的 AI 味儿!
|
6月前
|
NoSQL Redis 数据安全/隐私保护
Redis Windows 7.2.3 使用教程解压启动与测试步骤
本指南详解Redis for Windows 7.2.3的快速部署:下载解压(路径勿含中文/空格)、双击redis-server启动服务、redis-cli测试连接(ping→PONG,set/get验证),并可选注册为开机自启Windows服务。操作简洁,一步到位。
|
Shell 虚拟化 iOS开发
Mac下iTerm2+oh my zsh+powerlevel10k 配置与美化过程记录
Mac下iTerm2+oh my zsh+powerlevel10k 配置与美化过程记录
5735 0
Mac下iTerm2+oh my zsh+powerlevel10k 配置与美化过程记录
|
SQL 关系型数据库 MySQL
【Seata1.5.2 下载 & 配置 & 整合 & 踩坑 & 测试】—— 含各种踩坑记录(详细版)(上)
【Seata1.5.2 下载 & 配置 & 整合 & 踩坑 & 测试】—— 含各种踩坑记录(详细版)
2364 0