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

Portable shell wrappers #53

Merged
merged 14 commits into from
Aug 7, 2022
Merged

Portable shell wrappers #53

merged 14 commits into from
Aug 7, 2022

Conversation

mgunyho
Copy link
Owner

@mgunyho mgunyho commented Aug 3, 2022

Inspired by the discussion in #46.

@mgunyho
Copy link
Owner Author

mgunyho commented Aug 3, 2022

@markusduffek could you try to make the powershell wrapper also portable like this, and test that it works?

Also, is the $isWindows check really needed?

You can make a commit on top of this branch in your fork and I can cherry-pick it.

@mgunyho mgunyho force-pushed the portable-shell-wrappers branch 3 times, most recently from b98857e to ba3ee7e Compare August 4, 2022 18:03
mgunyho added 5 commits August 6, 2022 07:51
Tested that this works with both bash & zsh
Tested that this works. A bit confusing because the bin has the same
name as the alias, but looks like xonsh handles it fine.
I suppose that fish is more well-known
@mgunyho mgunyho force-pushed the portable-shell-wrappers branch from ba3ee7e to f2fadf0 Compare August 6, 2022 04:51
Marton Gunyho added 7 commits August 6, 2022 17:22
Tested that leaving out the exe works on Windows
Tested with powershell on windows. The "Get-Command -CommandType
Application tere" ensures that we refer to tere.exe, and not the alias,
so we don't get recursion. Basically equivalent to bash "command tere".
This way it's a bit clearer which instruction belongs to which section
@mgunyho mgunyho force-pushed the portable-shell-wrappers branch from 86ba3e9 to 5c84d9e Compare August 7, 2022 18:31
@markusduffek
Copy link

@markusduffek could you try to make the powershell wrapper also portable like this, and test that it works?

Also, is the $isWindows check really needed?

You can make a commit on top of this branch in your fork and I can cherry-pick it.

Yes, sure.

@mgunyho
Copy link
Owner Author

mgunyho commented Aug 7, 2022

Actually, I was able to test this on Windows and I was able to figure it out (see 204e0de)

@mgunyho mgunyho merged commit 3236221 into master Aug 7, 2022
@mgunyho mgunyho deleted the portable-shell-wrappers branch August 7, 2022 18:59
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

Successfully merging this pull request may close these issues.

3 participants