Watfaq / PowerSession-rs

Rust implementation of PowerSession, with new features and enhancements
https://github.com/Watfaq/PowerSession-rs
MIT License
170 stars 7 forks source link

allow changing the default command #34

Open ghost opened 2 years ago

ghost commented 2 years ago

it defaults to powershell.exe - powershell 5.1, and i would like to be able to change it to pwsh - powershell 7

ibigbug commented 2 years ago

you should be able to run PowerSession.exe rec -c pwsh a.txt

brian6932 commented 2 years ago

An env var, or a config setting to set shell would be pretty useful

ibigbug commented 2 years ago

The point is the cmd doesn't have to be a shell, it can be other programs like text editor vim etc.