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

oh-my-bash: Shell is not interactive #293

Closed
AnderSouza opened this issue Jan 12, 2022 · 3 comments
Closed

oh-my-bash: Shell is not interactive #293

AnderSouza opened this issue Jan 12, 2022 · 3 comments

Comments

@AnderSouza
Copy link

Hello there.
I've installed oh-my-bash and selected the powerline theme.
All good, everything worked fine.

When I restarted the system though, it was another matter. After logging in I received this error:

Error found when loading /home/[username]/.profile oh-my-bash: Shell is not interactive. As a result the session will not be configured correctly. You should fix the problem as soon as feasible.

It turns out that I don't know how to fix the problem.
I have found a couple of issues on the web talking about the subject,
but they don't seem to be directly related to oh-my-bash, or oh-my-zsh for that matter.

And then I ran into this issue: #18 .

Replacing the line

source $OSH/oh-my-bash.sh

with the following

if tty -s
then
	source $OSH/oh-my-bash.sh
fi

solved my problem.

I initially thought that this problem had been resolved.
Is it possible that I did something wrong in the installation process?

I've created this issue to highlight the problem and the solution which, by the way, was already described in an old issue.
Hope it helps someone else.

@akinomyoga
Copy link
Contributor

Thank you for the report. Hmm, OK. This is caused by 31f095f which was originally suggested in #73 f5c0018. I'll revert this commit.

@akinomyoga
Copy link
Contributor

I have pushed a fix e5e3048. You can update oh-my-bash by running upgrade_oh_my_bash. Thank you

@AnderSouza
Copy link
Author

Thank you.

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

No branches or pull requests

2 participants