-
-
Notifications
You must be signed in to change notification settings - Fork 6
Allow to use a different shell; shorthand for wsl genie -s
possible
#2
Comments
wsl genie -s
possible
BTW, I am looking into this and might suggest a PR at some point. Note: the output
comes from |
A bit rusty (8+ years of no C# coding), but added a ConfigurationBuilder that takes a
so will cleanup some code and determine if the |
Have a PR #3, but still wanting to refactor this a little. If you create a file {
"shell": "zsh"
} |
@gbraad Now I come to ship this in 0.2, a thought occurs to me concerning your comments up above -- -- insofar as Do you think it would be better to have RunInGenie detect this situation and request a login shell specifically, or treat |
So what happens is that |
It does, but should it, is my question? On the one hand, I can see the use of a quick shortcut with the above behavior for popping up a shell for a few quick commands in the current context (I'd use it fairly often for that myself); But on the other hand, it's not a direct replacement of (I think I prefer the former, given that my terminal etal. all know to start the shell the long way anyway, so I'm only likely to use |
Right. I do not have this particular need. Using just Also, let's see if the |
Makes sense to me. I'll put -l and its option on the list for 0.3. (-d [distro] is added in 0.2.) |
Not added as per comment on PR #5 (comment) and the 'soonish'-remark here #2 (comment). Created a new issue for this #3. Didn't get around this due to the CNY celebrations and helping the kids as school didn't open yet. Also the, extensions.commandline library does not allow empty shorthand/options so |
Yep. I added it myself in the 0.2 release after merging the PR. 😁 |
It might be helpful to allow the user to change the shell used:
RunInGenie/Program.cs
Lines 118 to 119 in 5e15afb
Here
sh
is forced which is really bare and doesn't load any profile. If the shell can be configured to use eitherbash
orzsh
the usage can be different.If for instance
is used, it would now 'expect' an argument... but what if it actually opens a shell session; this would be a replacement if
wsl genie -s
.At the moment I do
$ zsh
to drop into my session:but it would be simpler if the argument need wasn't there and any shell could be used perhaps by configuration of an
.config
file alongside the executable or an ini file.The text was updated successfully, but these errors were encountered: