In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "the installation and use of thefuck". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Article catalogue
Brief introduction
Screenshot
Example
Installation
Brief introduction
Do you often type the wrong command at the terminal? It's annoying to type the wrong order and delete the heavy knock. When you knock wrong again and again, your heart must be broken, you must be reciting What The FUCK! That's how the thefuck artifact was born. Thefuck can not only fix errors in character input order, but in many other cases where you want to say fuck, thefuck is still valid, anyway, if you report an error because of a command problem, please fuck it.
Thefuck is an open source gadget written in Python that automatically corrects spelling errors in the previous command. This tool is very cool, especially for children's shoes that often use the command line.
Thefuck supports Mac OS X and Linux systems.
Screenshot
Example
1. The command is not spelled correctly
# puthonNo command 'puthon' found, did you mean: Command' python' from package 'python-minimal' (main) Command' python' from package 'python3' (main) zsh: command not found: puthon # fuckpythonPython 3.4.2
2. Command input error
# git brnchgit: 'brnch' is not a git command. See 'git-- help'. Did you mean this? Branch # fuckgit branch* master
3. Insufficient permissions
# apt-get install vimE: Could not open lock file / var/lib/dpkg/lock-open (13: Permission denied) E: Unable to lock the administration directory (/ var/lib/dpkg/), are you root?# fucksudo apt-get install vim [sudo] password for nvbn:Reading package lists... Done installation
1. Install thefuck
Run the following command:
# CentOS system yum-y update & & yum-y install gcc wget https://bootstrap.pypa.io/get-pip.pypython get-pip.py & & yum-y install python-develsudo-H pip install thefuck # Ubuntu/Debian system sudo apt updatesudo apt install python3-dev python3-pipsudo pip3 install thefuck
For more installation and usage, check out the Github project address: https://github.com/nvbn/thefuck.
2. Configuration
# Edit the bashrc configuration file vim ~ / .bashrc # add a line at the end of the file to alias thefuck fuckeval "$(thefuck-- alias fuck)" # to make it effective source ~ / .bashrc
Finally, use the fuck command to correct command-line spelling errors.
The way to update to the latest thefuck is very simple: sudo pip3 install thefuck-- upgrade
This is the end of the content of "installation and use of thefuck". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.