The Fuck - intelligent corrector of typos in the terminal
   
All articles
Last comments
Shekin
Will, 16-11-2014, 19:21
Will
Didnt see when this post was originally made....but still works in Mint 'Sarah' in 2017
kardamom
Jesús, for "libpackagekit" run: sudo apt-get install packagekit-backend-aptcc
Guest Michael
This is my favorite GUI text editor for Linux, I use the Windows version all the time too. I also covered this topic here.
Andrii
I'm using Mint Cinnamone installed on virtual machine VMWare. The instruction helped me to adjust my mouse scroll wheel speed. I set the value to 6. Now it's comfortable to use the mouse. Thanks a lot!
Archive
«    January 2017    »
MonTueWedThuFriSatSun
 1
2345678
9101112131415
16171819202122
23242526272829
3031 
» » The Fuck - intelligent corrector of typos in the terminal

The Fuck - intelligent corrector of typos in the terminal

The Fuck - intelligent corrector of typos in the terminalThe Fuck - intelligent corrector of typos in the terminal

The action program with the lyrical name of The Fuck like magic: the user types in the terminal, but, for example, makes a mistake. For example, to attribute sudo forgets or makes a typo. Then he writes at the command prompt, the word fuck and the program fixes it.

Sorry for the spelling and phonetic errors in the text.
Owner and main writer of MintGuide.org is not a native English speaker.


Actually, no magic. The program takes an error message after entering the previous command and tries to match with a pre-written sample. If a match is found, the rule is triggered and the command is adjusted. Although rules has been written very much, the user is left to add its own.

The example of the program-corrector The Fuck

apt-get install vim

Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
Unable to lock the administration directory (/var/lib/dpkg/), are you root?

fuck

sudo apt-get install vim

The Fuck understands options and specialized programs. Here is an example for Git:

git brnch

git: 'brnch' is not a git command. See 'git --help'.

fuck

git branch

The Fuck - intelligent corrector of typos in the terminalThe Fuck - intelligent corrector of typos in the terminal

Installation latest version into Linux Mint:

Installation is through PIP package Manager - staff Manager for package management in Python

sudo apt update
sudo apt install python3-dev python3-pip
sudo -H pip3 install thefuck

You should place this command in your .bashrcChanges will be available only in a new shell session.

gedit ~/.bachrc

Insert this line

eval "$(thefuck --alias)"

You can use whatever you want as an alias, like for Mondays:

eval "$(thefuck --alias FUCK)"

The Fuck - intelligent corrector of typos in the terminalThe Fuck - intelligent corrector of typos in the terminal

Since the program is bypassing the system's package Manager, then the update will look different:

sudo pip3 install thefuck --upgrade

Good Luck!!!

https://github.com/nvbn/thefuck

Tags: terminal

Related Articles

Add a comment

  • bowtiesmilelaughingblushsmileyrelaxedsmirk
    heart_eyeskissing_heartkissing_closed_eyesflushedrelievedsatisfiedgrin
    winkstuck_out_tongue_winking_eyestuck_out_tongue_closed_eyesgrinningkissingstuck_out_tonguesleeping
    worriedfrowninganguishedopen_mouthgrimacingconfusedhushed
    expressionlessunamusedsweat_smilesweatdisappointed_relievedwearypensive
    disappointedconfoundedfearfulcold_sweatperseverecrysob
    joyastonishedscreamtired_faceangryragetriumph
    sleepyyummasksunglassesdizzy_faceimpsmiling_imp
    neutral_faceno_mouthinnocent
Login via
1178-3
Up