Open MiroslavMikus opened 2 years ago
+1
Are there any updates? I would prefer to use powershell instead of cmd.exe
After digging around a bit, it would seem we need to change the way the runners (commands/oscommands/*runner.go) operate, though it seems to be an issue with the lib that we use, pty. We should watch this?
The link returns 404.
The thing is that these are currently hardcoded, e.g. bash
for unix and cmd
for windows (I'm guessing), we should make that configurable. Something like that is underway in #2096 .
Fixed the link. Does that affect the runners (assuming they are responsible for running custom commands)? I couldn't see a relation, though I'm not very familiar with the codebase.
Hey, I'm playing with custom commands and can't find docu/config to change the default terminal.
Describe the solution you'd like I would like to change the default terminal path and parameters.
Describe alternatives you've considered Right now we can kind of start powershell from CMD -_-
- this does not workpwsh.exe -NoProfile -WindowStyle Hidden -command "& { gps > ps.txt}"
I have found some documentation about
subprocess
in custom commands. Now, I'm running lazy-git in Powershell 7 and WindowsTerminal. It looks like whatever I choose to use subprocess or not I will end in CMD. Although I would expect it to be Powershell 7.Thanks