Features
- PowerShell: Allow to optionally load PS profiles when elevating simple commands. #130
- For
gsudo
, usegsudo --loadProfile command
per command, orgsudo config PowerShellLoadProfile true
for permanent configuration. - For
Invoke-Gsudo
: useInvoke-gsudo { scriptBlock } -LoadProfile
per command, or set$gsudoLoadProfile=$true
in your$PROFILE
afterImport-Module gsudoModule
for permanent configuration.
For best results, if you enable this feature, your$PROFILE
should not write any output to the console.
- For
Fixes
- Do not change Console encoding, because it alters the parent Console Host CodePage even after gsudo is closed. Fixes issues with Asian/double-byte character set (DBCS) setups. (fixes #129)