当前位置:网站首页>oh my zsh正确安装姿势
oh my zsh正确安装姿势
2022-06-11 04:48:00 【代码大师麦克劳瑞】
简介
Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration. It comes bundled with thousands of helpful functions, helpers, plugins, themes, and a few things that make you shout…
我个人非常喜欢iterm2+oh my zsh的终端组合,非常好的窗口切分,友好的命令提示、高亮、git分支展示等等功能。

由于国外的镜像地址在墙外,最近使用梯子也访问不到,因此找到了国内的镜像源,可以安装oh my zsh,因此共享给大家。
curl方式
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)"
wget方式
REMOTE=https://gitee.com/mirrors/oh-my-zsh.git sh -c "$(wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -O -)"
权限处理
安装完之后每次打开终端都会出现这些提示
[oh-my-zsh] Insecure completion-dependent directories detected:
drwxrwxr-x 3 thzt admin 102 2 8 22:19 /usr/local/share/zsh
drwxrwxr-x 3 thzt admin 102 2 8 22:31 /usr/local/share/zsh/site-functions
[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.
我们需要使用以下语句进行更改权限就ok了。
sudo chown -R root:staff /usr/local/share/zsh
sudo chmod -R 755 /usr/local/share/zsh
边栏推荐
- USB转232 转TTL概述
- What is the difference between a wired network card and a wireless network card?
- CONDA switching
- Leetcode classic guide
- Possible errors during alphapose installation test
- Writing a good research title: Tips & Things to avoid
- Mindmanager22 professional mind mapping tool
- Lianrui: how to rationally see the independent R & D of domestic CPU and the development of domestic hardware
- 免费数据 | 新库上线 | CnOpenData全国文物商店及拍卖企业数据
- 福州口罩洁净厂房建设知识概述
猜你喜欢
![[Transformer]MViTv1:Multiscale Vision Transformers](/img/de/1f2751f08dbf4ea3f77a403365dbda.jpg)
[Transformer]MViTv1:Multiscale Vision Transformers

Parametric contractual learning: comparative learning in long tail problems

Differences between the four MQ

Lr-link Lianrui fully understands the server network card

Network security construction in 5g Era

Analysis of 17 questions in Volume 1 of the new college entrance examination in 2022

The third small class discussion on the fundamentals of information and communication

无刷电机调试经验与可靠性设计

Project architecture evolution

An adaptive chat site - anonymous online chat room PHP source code
随机推荐
Sorting out relevant programming contents of renderfeature of unity's URP
Leetcode question brushing series - mode 2 (datastructure linked list) - 83:remove duplicates from sorted list
go MPG
Crmeb/v4.4 Standard Version open version mall source code applet official account h5+app mall source code
lower_ bound,upper_ Bound, two points
Real time update of excellent team papers
Google Code Coverage best practices
2022年新高考1卷17题解析
[Transformer]MViTv2:Improved Multiscale Vision Transformers for Classification and Detection
Decision tree (hunt, ID3, C4.5, cart)
Commissioning experience and reliability design of brushless motor
Programming Examples Using RDMA Verbs
CONDA switching
How the idea gradle project imports local jar packages
lower_bound,upper_bound,二分
Unzip Imagenet after downloading
Pytoch machine learning GPU usage (conversion from CPU to GPU)
Mathematical basis of information and communication -- the first experiment
The 4th small class discussion class on fundamentals of information and communication
Powerful new UI installation force artifact wechat applet source code + multiple templates support multiple traffic main modes