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

enrol.config.finder does not work on wsl #8

Closed
j3ll3yfi5h opened this issue Mar 11, 2017 · 11 comments
Closed

enrol.config.finder does not work on wsl #8

j3ll3yfi5h opened this issue Mar 11, 2017 · 11 comments

Comments

@j3ll3yfi5h
Copy link

When I use the command "enrol.config.finder" I get "Konnte keinen Dateideskriptor finden, der auf die Konsole verweist.".

Are your commands also compatible to Bash on Windows Subsystem for Linux? ;)

@marcwieland95
Copy link
Member

No, never tested this.
Fire the following two commands in your windows bash:
cd ~/.oh-my-zsh/plugins/enrolzsh
start .
Does this work?

@j3ll3yfi5h
Copy link
Author

nope... :P

@marcwieland95
Copy link
Member

And this?
cd ~/.oh-my-zsh/plugins/enrolzsh
explorer .

@j3ll3yfi5h
Copy link
Author

nope...

@marcwieland95
Copy link
Member

This thing is dump

@j3ll3yfi5h
Copy link
Author

j3ll3yfi5h commented Apr 17, 2017

Note: If you try to launch a Windows tool, asking it to open a file that is located in your Linux filesystem, it will be unable to open the file (it will appear to be “missing”) and Bash will inform you of this problem stating that it was : “Unable to translate current working directory. Using C:\WINDOWS\system32”.
This is due to a current limitation in WSL wherein Windows apps should NOT be used to open files in the Linux filesystem. Opening files in the Windows filesystem is fully supported using both Windows apps and Bash/Linux tools (via /mnt//…), but avoid opening Linux files using Windows apps at all cost!

https://blogs.msdn.microsoft.com/commandline/2016/10/19/interop-between-windows-and-bash/

Anyhow, you could add following lines to your config.zsh:
# Open explorer at global config file
enrol.config.explorer() {
eval cmd.exe /C "explorer \"C:\Users\YOUR-WINDOWS-USER\AppData\Local\lxss\home\YOUR-BASH-USER\.oh-my-zsh\plugins\enrolzsh\""
}

@marcwieland95
Copy link
Member

@j3ll3yfi5h Please test the new windows only command enrol.config.explorer to check if the dynamic variables are resolved correctly. I'm not able to test windows the quick way.

@marcwieland95
Copy link
Member

This approach sadly won't work and is a long way to go. Enrol doesn't officially fully support Windows.

marcwieland95 added a commit that referenced this issue Aug 15, 2017
@Jcambass
Copy link

Jcambass commented Aug 16, 2017

@marcwieland95 Isn't the real problem here that @j3ll3yfi5h is using bash and not zsh ?
@j3ll3yfi5h Or did you already try with a ZSH and OH-MY-ZSH Installation on the wls?

@j3ll3yfi5h
Copy link
Author

@Jcambass of course I'm working with ZSH and OH-MY-ZSH; I changed the default shell to ZSH.

@Jcambass
Copy link

@j3ll3yfi5h Okei, I was a bit confused there since you've said you'd be using bash on windows. These could have meant that you're literally using bash. However This is a issue that should be fixable since ZSH and Oh-my-zsh are supported on wls. So enrol should be to unless any of it's 3party libs or deps aren't. I'm sure it needs a bit good amount of time to solve this issue and find a workaround. But this should be doable. I'll have a look at that later that week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants