-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sudo !! (bang bang) for PowerShell #44
Comments
It's not a trivial task. |
the |
Using PSReadline or Get-History is easy to do via function.
Add this to |
On gsudo v1.0 you may experiment editing
|
What would be the path of such a file? |
@DigiOhhh It is located here. You'd have to download or clone it manually and pull it into your |
For reference, for this feature to work on PowerShell, you need to follow the instructions given in the readme: Which is: Please run the following, and it will do it for you:
|
Doesn't work for me: |
@DigiOhhh: have you imported |
Yes, this is the content of my profile:
|
Please: check you gsudo version, if not
|
Right, I´ve updated the readme recently:
The first one ( |
Works good! Thank you |
The just released 0.7.1 doesn’t support
!!
for PS. At face value, this seems like it should be pretty straight forward using Get-History, but I don’t have much experience with PS and even less with using PS from C#. I would like to look into it, but was wondering if you tried and encountered any showstoppers' or problems that might make this moot or extremely complicated.The text was updated successfully, but these errors were encountered: