关于同时使用MacVim和zsh产生PATH读取错误的解决办法
来源:互联网 发布:淘宝韩版女装店铺推荐 编辑:程序博客网 时间:2024/06/05 19:44
直接引用官方解释。
For zsh users
Rename the /etc/zshenv file to /etc/zprofile
If MacVim appears to use the wrong PATH
variable, you may have run into a zsh configuration problem. Try the following:
$ sudo mv /etc/zshenv /etc/zprofile
NOTE: If the system already has a /etc/zprofile
, make sure you merge the two files instead of overwriting /etc/zprofile
.
The problem is caused by /etc/zshenv
, which (somewhat erroneously) resets the PATH
for every zsh instance, not just login shells. MacVim, running in a non-interactive shell, gets a PATH
variable that has the OS X system paths but is missing user-defined paths.
If the above alone does not work, there is an additional step involved. Set your PATH
(or any other variable you may need) in ~/.zprofile
. To do that, assuming you have your PATH
set in ~/.zshrc
, use the command
$ cat ~/.zshrc | grep "export PATH" >> ~/.zprofile
There is a caveat: when using Terminal.app
, the variables present in .zprofile
and .zshrc
will contain duplicate items. To avoid confusion add typeset -U name_of_the_variable
to your .zshrc
.
- 关于同时使用MacVim和zsh产生PATH读取错误的解决办法
- 关于ORA-01000错误产生的原因和解决办法
- MSMPI和MPICH2同时安装产生的错误
- 关于SDK升级到5.0,使用ADT-Bundle中产生的appcompat_v7错误的解决办法.
- mac 上 给zsh和macvim加上powerline
- mac上zsh|macvim|powerline的安装与配置
- LNK2001链接错误产生的原因分析和解决办法
- LNK2001链接错误产生的原因分析和解决办法
- MACVim下Viki安装和使用的总结
- zsh的使用和颜色配置
- zsh的安装和使用简介
- wing中不能同时使用except和finally的解决办法
- zsh的简单使用
- 关于mina框架里产生too many open files的错误的解决办法
- 关于错误提示:could not find a part of path “X:\”的解决办法
- 使用TTS产生的错误
- Macvim最最最基本的使用
- zsh ctrl-r 不能使用解决办法
- struts2.1.6 + hibernate3.3 + spring3.0 遇到的问题
- Android入门(5) XML
- Oracle 分页的三种情况
- Android 学习 应用使用大文件的方法 读取sd卡的数据库
- POJ3267
- 关于同时使用MacVim和zsh产生PATH读取错误的解决办法
- NAND FLASH & ECC
- CKEditor 4使用方法,来自http://docs.ckeditor.com/#!/guide/dev_ckeditor_js_load官网地址
- ARCGIS viewer入门(7)扩展arcgis server flex API功能
- Hacking Tut Running MapleStory on Vmware
- HDOJ2043 密码
- 模块加载
- SQLite数据库增删改查操作
- Java邮件开发-----JavaMail(一)