lukesampson / pshazz

Give your powershell some pizazz.
The Unlicense
575 stars 40 forks source link

Make pshazz Unix-compatible #89

Closed kiedtl closed 5 years ago

kiedtl commented 5 years ago

Over the past few days, I've been trying to get pshazz running on Linux. One problem I encountered is that pshazz uses the USERPROFILE variable to get the home directory.

The problem with this method is that this environment variable is set on Windows but not on Unix. Another problem is that pshazz uses Windows-style paths (path\to\blah\blah.txt) instead of Unix-style (path/to/blah/blah.txt). Unix cannot tolerate the former but the latter is cross-compatible.

Fixes

kiedtl commented 5 years ago

@h404bi We might have to disable plugins (except perhaps git) on Unix systems due to incompatibility with Linux, etc.

What do you think?

chawyehsu commented 5 years ago

Why not make plugins be compatible with Unix.

kiedtl commented 5 years ago

Why not make plugins be compatible with Unix.

Correct - would be the proper solution. I mean for now - in another pull request plugins can be made Unix-compatible.

BTW SSH plugin will have to be disabled on Unix indefinitely, as it relies on Windows binaries (askpass.exe).

kiedtl commented 5 years ago

OK - I hate to say this, but pshazz is not, flat out NOT compatible with anything other than Windows. I guess I'm giving up - pshazz doesn't need a PR, it needs an entire rewrite before it will be truly cross-platform. And the many quirks and differences between Windows and Linux further complicate matters.