Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zshell starts up with exit status of 1 after uninstalling RVM

Tags:

shell

zsh

rvm

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?

like image 339
achalk Avatar asked Jul 31 '17 16:07

achalk


1 Answers

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!

like image 106
achalk Avatar answered Oct 26 '22 11:10

achalk