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




相关文章
|
Python
ZSH、oh-my-zsh安装教程及插件和主题推荐
ZSH、oh-my-zsh安装教程及插件和主题推荐
991 0
|
Unix Linux Shell
Wow~12.9k Star!这个 ZSH 的增强工具让你爱上命令行!
Wow~12.9k Star!这个 ZSH 的增强工具让你爱上命令行!
104 0
Wow~12.9k Star!这个 ZSH 的增强工具让你爱上命令行!
【技术分享】Mac使用Homebrew安装httpd
【技术分享】Mac使用Homebrew安装httpd
396 0
【技术分享】Mac使用Homebrew安装httpd
|
Shell 程序员
美化终端:zsh和on-my-zsh配置教程
美化终端:zsh和on-my-zsh配置教程
357 0
|
网络协议
macbook中安装Homebrew 出现443错误
macbook中安装Homebrew 出现443错误
888 0
|
Java Shell 开发工具
Mac 下 Oh my zsh + iTerm2 初体验
iTerm2是 Terminal 的替代品,也是 iTerm 的继承者。 它适用于 macOS 10.12或更新版本的 mac 电脑。 iTerm2将终端带入了现代社会,带来了一些你从来不知道自己一直想要的功能。
237 0
Mac 下 Oh my zsh + iTerm2 初体验
|
Shell
Mac OSX终端安装主题(oh my zsh)
Mac OSX终端安装主题(oh my zsh)
442 0
Mac OSX终端安装主题(oh my zsh)
|
Shell Linux 开发工具
iTerm2 + Oh My Zsh,打造专属你的终端神器
iTerm2 + Oh My Zsh,打造专属你的终端神器
367 0
iTerm2 + Oh My Zsh,打造专属你的终端神器
|
Ubuntu Linux Shell
买不起MacBook,使用Windows 10配置zsh命令行做开发(二)
从苹果转过来的开发都会感觉 Windows 下的命令行真是难用,接下来就跟着我来把 zsh 搬过来吧买不起 MacBook ,使用 Windows 10 配置 zsh 命令行做开发。
238 0
买不起MacBook,使用Windows 10配置zsh命令行做开发(二)
|
Ubuntu Linux 数据安全/隐私保护
买不起MacBook,使用Windows 10配置zsh命令行做开发(一)
从苹果转过来的开发都会感觉 Windows 下的命令行真是难用,接下来就跟着我来把 zsh 搬过来吧买不起 MacBook ,使用 Windows 10 配置 zsh 命令行做开发。
191 0
买不起MacBook,使用Windows 10配置zsh命令行做开发(一)