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

OhMyFish can't load theme when is started with ENV CWD #494

Closed
brodock opened this issue Mar 3, 2017 · 3 comments
Closed

OhMyFish can't load theme when is started with ENV CWD #494

brodock opened this issue Mar 3, 2017 · 3 comments

Comments

@brodock
Copy link

brodock commented Mar 3, 2017

My IDE (RubyMine) has an integrated terminal and I can specificy manually it to use the fish shell. The issue is that it uses the ENV CWD to specificy an initial directory that is different from the HOME variable.

This is the error I get when trying to load the new terminal:

<W> fish: An error occurred while redirecting file '/Applications/RubyMine.app/Contents/plugins/terminal/omf/theme'
open: No such file or directory
<W> fish: An error occurred while redirecting file '/Applications/RubyMine.app/Contents/plugins/terminal/omf/theme'
open: No such file or directory

Operation system: Mac OS: 10.12.3
fish, version 2.4.0
Oh My Fish version 5
git version 2.11.0

@brodock
Copy link
Author

brodock commented Mar 3, 2017

looks like the CWD is not the issue. This is the relevant part of my ENV:

OMF_CONFIG=/Applications/RubyMine.app/Contents/plugins/terminal/omf
OMF_PATH=/Users/brodock/.local/share/omf
PWD=/Users/brodock/some/folder/here

@sagebind
Copy link
Member

sagebind commented Mar 3, 2017

@brodock Do you have valid configuration located at /Applications/RubyMine.app/Contents/plugins/terminal/omf? As far as I know, using arbitrary paths for $OMF_CONFIG without being set up first isn't explicitly supported, though I see no reason why we couldn't support it.

OMF is looking for a text file named theme in $OMF_CONFIG to determine what the current theme is set to.

@brodock
Copy link
Author

brodock commented Mar 3, 2017

Ok I figured out what was wrong. For some reason RubyMine cached ENV SHELL pointing to the old one which was /bin/zsh. After restarting the app it was able to load the theme correctly.

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