[求助]zsh没法设置环境变量
Tofloor
poster avatar
strive
deepin
2017-10-07 05:52
Author
在.zshrc 文件最后两行加入两行 86 export http_proxy=http://127.0.0.1:8118/                 87 export https_proxy=http://127.0.0.1:8118/
其他都是默认配置。每次启动zsh都会提示/home/cwj/.zshrc:86: permission denied: /home/cwj; 运行source .zshrc命令也会提示这个错误。

cwj-Laptop% ls -al .zshrc
-rwxrwxrwx 1 cwj cwj 3027 Oct  6 20:56 .zshrc


cwj-Laptop% uname -a
Linux cwj-Laptop 4.9.0-deepin11-amd64 #1 SMP PREEMPT Deepin 4.9.40-2 (2017-08-12) x86_64 GNU/Linux







Reply Favorite View the author
All Replies
avatar
strive
deepin
2017-10-07 18:48
#1
没人知道怎么解决吗
Reply View the author
avatar
strive
deepin
2017-10-07 19:35
#2
重新安装了oh-my-zsh就行了。。
Reply View the author
avatar
HarryZhao
deepin
2017-10-07 20:26
#3
“permission denied”这是权限不足吧?
终端里直接运行export http_proxy=http://127.0.0.1:8118/会有什么提示吗?
Reply View the author
avatar
strive
deepin
2017-10-08 00:02
#4
https://bbs.deepin.org/post/146376
“permission denied”这是权限不足吧?
终端里直接运行export http_proxy=http://127.0.0.1:8118/会有什么 ...

直接在终端运行是可以的
Reply View the author
avatar
isunny
deepin
2017-10-08 03:27
#5
哥们你是设置了变量 可是 你source 了吗
Reply View the author
avatar
strive
deepin
2017-10-08 17:13
#6
https://bbs.deepin.org/post/146376
哥们你是设置了变量 可是 你source 了吗

恩,重新装了zsh就没那个问题了。。不知道为啥。。
Reply View the author