Zshell starts up with exit status of 1 after uninstalling RVM

你。 提交于 2020-01-11 12:51:12

问题


I've just uninstalled rvm—I ran rvm implode and removed rvm from $PATH in my .zshrc, as specified in this Stack Overflow post.

Since uninstalling, I've noticed that my shell startup has an exit status of 1. I've checked this by using echo $? after loading the shell—I always get 1 back.

I briefly reinstalled rvm to confirm that's what caused the change, and sure enough, after reinstalling, my exit status was back to zero on startup.

I've tried commenting out my zshell so that there's no customization, but that didn't solve the problem.

What is causing my startup exit status of 1 after uninstalling rvm?


回答1:


Found it! I was looking at the zshell sourceforge page, and I noticed that zsh reads from five different files at startup:

$ZDOTDIR/.zshenv
$ZDOTDIR/.zprofile
$ZDOTDIR/.zshrc
$ZDOTDIR/.zlogin
$ZDOTDIR/.zlogout

I found a .zlogin file on my system that contained some rvm-related code. I've deleted the code, and the problem is solved!



来源:https://stackoverflow.com/questions/45421479/zshell-starts-up-with-exit-status-of-1-after-uninstalling-rvm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!