Skip to content

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

@AnderSouza

Description

@AnderSouza

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions