Closed MigProPlayer closed 1 month ago
Hi, The behaviour is intentional: to not mess with other sudo tools, if exists. The problem is the documentation is poor and needs to document this.
Please add this to your profile, after Import-Module gsudoModule
:
Set-Alias sudo gsudo
That will fix the issue.And btw, since you have gsudoModule, instead of !!, you may want to write gsudo
+ space + tab key
> Do-Something
Insuficient Access
> gsudo [press tab key] --> will autocomplete with:
> gsudo { Do-Something }
I think that one featyre is much better than !!
Oh, I didn't know it was an intended feature. Thank you for letting me know! I'll make sure to check the autocompletion later on.
Issue Description
After adding
Import-Module 'gsudoModule'
to my Powershell 7 profile, executing the last command withgusdo !!
works. But trying to do the same thing but with thesudo
alias (sudo !!
) throws out an error about the module not being imported. Thesudo
alias works for everything else except doingsudo !!
.Steps to Reproduce
Import-Module 'gsudoModule'
to your powershell profilesudo !!
to rerun that command as adminScreenshots
Context: