Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattparkes/PoShFuck
PowerShell implementation of "The Fuck" (https://github.com/nvbn/thefuck)
https://github.com/mattparkes/PoShFuck
Last synced: about 2 months ago
JSON representation
PowerShell implementation of "The Fuck" (https://github.com/nvbn/thefuck)
- Host: GitHub
- URL: https://github.com/mattparkes/PoShFuck
- Owner: mattparkes
- License: mit
- Created: 2015-05-04T23:28:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-02-17T16:14:16.000Z (over 1 year ago)
- Last Synced: 2024-06-10T19:12:25.175Z (4 months ago)
- Language: PowerShell
- Size: 35.2 KB
- Stars: 198
- Watchers: 9
- Forks: 16
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PoShFuck
PowerShell implementation of "The Fuck" (https://github.com/nvbn/thefuck)When you type a command incorrectly, don't _say_ 'fuck', _type_ it!
## Installation:
For PoShFuck to run, your execution policy must be lowered. So run this in an admin elevated PowerShell to install:
Set-ExecutionPolicy RemoteSigned
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/mattparkes/PoShFuck/master/Install-TheFucker.ps1'))## Usage:
We've all done this before...
PS C:\> peng 8.8.8.8 -a
peng : The term 'peng' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ peng 8.8.8.8 -a
+ ~~~~
+ CategoryInfo : ObjectNotFound: (peng:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundExceptionPoShFuck can fix it.
PS C:\> fuck
Did you mean?
PING -a 8.8.8.8
[Y] Yes [N] No [?] Help (default is "Y"): yPinging google-public-dns-a.google.com [8.8.8.8] with 32 bytes of data:
Reply from 8.8.8.8: bytes=32 time=15ms TTL=56
Reply from 8.8.8.8: bytes=32 time=14ms TTL=56
Reply from 8.8.8.8: bytes=32 time=14ms TTL=56
Reply from 8.8.8.8: bytes=32 time=14ms TTL=56Ping statistics for 8.8.8.8:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 14ms, Maximum = 15ms, Average = 14ms## Commands:
- `fuck` (alias to `Invoke-TheFuck`)
This is the command which mungs your last command and presents you with options to fix it.- `fuck!` (alias to `Invoke-TheFuck -Force`)
This command will execute the recommended option without prompting the user.- `WTF` (alias to `Get-FuckingHelp`)
Googles your last console error.- `Get-Fucked`
Prints the list of commands which you have used PoShFuck to correct previously.