motionstudio / enrolzsh

We've got a workflow problem. And we're fixing it - here’s Enrol (step 1).
2 stars 1 forks source link

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

Closed j3ll3yfi5h closed 7 years ago

j3ll3yfi5h commented 7 years ago

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 commented 7 years ago

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

j3ll3yfi5h commented 7 years ago

nope... :P

marcwieland95 commented 7 years ago

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

j3ll3yfi5h commented 7 years ago

nope...

marcwieland95 commented 7 years ago

This thing is dump

j3ll3yfi5h commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

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

Jcambass commented 7 years ago

@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 commented 7 years ago

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

Jcambass commented 7 years ago

@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