Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to log in when sourcing the palette shellscript #48

Closed
sinapinto opened this issue Feb 19, 2015 · 3 comments · Fixed by #53
Closed

Unable to log in when sourcing the palette shellscript #48

sinapinto opened this issue Feb 19, 2015 · 3 comments · Fixed by #53

Comments

@sinapinto
Copy link

As mentioned in the wiki, I added the line source "$HOME/.vim/bundle/gruvbox/gruvbox_256palette.sh" to my ~/.zshrc and later noticed that this prevented me from logging in to this user (the .zshrc file gets sourced at login).

I'm not sure what is causing this problem -- the file exists and has the needed permissions. However I made a modification to the line so it wouldn't get sourced at login, and I'm able to log in again.

[[ -o login ]] || source "$HOME/.vim/bundle/gruvbox/gruvbox_256palette.sh"

@sinapinto
Copy link
Author

upon further inspection it seems it was lines 80-82 in the shellscript that were causing the issue.

if [ "$TERM" = "linux" ] || [ "$TERM" = "vt100" ] || [ "$TERM" = "vt220" ]; then
    exit 1                                                                 
fi 

@morhetz
Copy link
Owner

morhetz commented Feb 19, 2015

Hmm, that's strange. Could you please specify your OS//WM?

@sinapinto
Copy link
Author

I'm using 32-bit Arch linux with 3.18.6 kernel. The problem is independent of the WM since it occurs outside of X. (and i'm not starting X automatically at login or anything).

I think what's happening is that at login, since my $TERM is "linux", the exit 1 gets called and it immediately logs me out. But I could be mistaken..

jonasmalacofilho added a commit to jonasmalacofilho/gruvbox that referenced this issue Mar 10, 2015
Splinter1984 pushed a commit to Splinter1984/gruvbox that referenced this issue Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants