GithubHelp home page GithubHelp logo

zshrc's Introduction

Zshrc

My zsh config.

安装

curl -s -k https://cdn.jsdelivr.net/gh/antonchen/zshrc/install.sh | bash

异常

启动 zsh 时提示:

zsh compinit: insecure files, run compaudit for list.
Ignore insecure files and continue [y] or abort compinit [n]?

这是因为 zsh 默认开启了安全检查,zsh 引入了有风险的文件。
有风险的文件:非当前用户且非 root 用户、组和其它用户对文件有写权限。

解决方案

方法 1

  1. 运行 compaudit | xargs chown -R "$(whoami)"
  2. 运行 compaudit | xargs chmod go-w
  3. 如未修复请尝试方法 2

方法 2

  1. 修改 zsh/main.zsh#L18&L20 compinit -i 后添加 -u 让 zsh 不检查

zshrc's People

Contributors

antonchen avatar

Stargazers

Neeke Gao avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.