{"id":8702,"date":"2020-02-04T20:23:14","date_gmt":"2020-02-04T12:23:14","guid":{"rendered":"https:\/\/jpuyy.com\/?p=8702"},"modified":"2023-03-31T08:27:17","modified_gmt":"2023-03-31T00:27:17","slug":"zsh-zprofile","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=8702","title":{"rendered":"zsh .zprofile"},"content":{"rendered":"<p>\u4ece macOS Catalina \u5f00\u59cb\uff0czsh \u6210\u4e3a\u4e86\u9ed8\u8ba4 shell<\/p>\n<p>https:\/\/support.apple.com\/en-us\/HT208050<\/p>\n<p>.zprofile \u76f8\u5f53\u4e8e .bash_profile<br \/>\n.zshrc \u76f8\u5f53\u4e8e .bashrc<\/p>\n<p>&#8212;<br \/>\nfix error<br \/>\nzsh compinit: insecure directories, run compaudit for list.<br \/>\nIgnore insecure directories and continue [y] or abort compinit [n]? ccompinit: initialization aborted<br \/>\ncomplete:13: command not found: compdef<br \/>\ncomplete:13: command not found: compdef<br \/>\ncomplete:13: command not found: compdef<br \/>\n\u68c0\u67e5$ compaudit<br \/>\nThere are insecure directories:<br \/>\n\/usr\/local\/share\/zsh\/site-functions<br \/>\n\/usr\/local\/share\/zsh<\/p>\n<pre>chown -R \"$(whoami)\" \/usr\/local\/share\/zsh\/site-functions \/usr\/local\/share\/zsh\nchmod 755 \/usr\/local\/share\/zsh\/site-functions \/usr\/local\/share\/zsh\n<\/pre>\n<p>&#8212;<br \/>\n2023-03-16 fix error<\/p>\n<pre>Last login: Thu Mar 16 14:35:14 on ttys010\n[9]    47765 illegal hardware instruction  sed --version 2&gt;&amp;1 | \n       47766 exit 1                        grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn,.idea,.tox} -q GNU\n<\/pre>\n<p>fixed by updating file `oh-my-zsh.sh`<\/p>\n<pre>omz update\n<\/pre>\n<p>preferred zsh themes<\/p>\n<pre>ZSH_THEME=\"random\"                                                                         \n# Set list of themes to pick from when loading at random                        \n# Setting this variable when ZSH_THEME=random will cause zsh to load            \n# a theme from this variable instead of looking in ~\/.oh-my-zsh\/themes\/         \n# If set to an empty array, this variable will have no effect.                  \nZSH_THEME_RANDOM_CANDIDATES=(rkj-repos cloud)\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece macOS Catalina \u5f00\u59cb\uff0czsh \u6210\u4e3a\u4e86\u9ed8\u8ba4 shell https:\/\/support.apple.com\/en-us\/HT208050 .zprofile \u76f8\u5f53\u4e8e .bash_profile .zshrc \u76f8\u5f53\u4e8e .bashrc &#8212; fix error zsh compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? ccompinit: initialization aborted complete:13: command not found: compdef complete:13: command not found: compdef complete:13: command not found: compdef \u68c0\u67e5$ compaudit There [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,171],"tags":[],"class_list":["post-8702","post","type-post","status-publish","format-standard","hentry","category-linux","category-macos"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8702"}],"version-history":[{"count":9,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8702\/revisions"}],"predecessor-version":[{"id":9712,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8702\/revisions\/9712"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}