Artifact! Wrong command, fuck it, you can automatically correct!

Click on the top " AI proper way ", select the "star" Public No.

Heavy dry goods, the first time served640?wx_fmt=jpeg

640?wx_fmt=jpeg

Transfer qubit, the authors ask farming

The figure of the little sister named Sarah Drasner.

She is a programmer, Netlify developer experience team leader, Vue core team members. She is also a very interesting beauty, personal website named the bomb site.

Most recently, she led a "explosion."

Amway is a cause she a terminal application, the application name is very strange, called on Twitter: at The Fuck. You're not wrong, that is not very elegant word.

This tweet, harvest 3.2k forwarding, 16000 thumbs up.

640?wx_fmt=png

A public foreign users a message, have said: too good with it, use it! It is incredibly easy to use! Thanks for sharing, good landlord Zhennai winner in life!

Today, this application after the update, boarded GitHub day trend chart, the cumulative gain 49,000 stars.

What happened in the end the child?

The Fuck

Sarah Drasner in Amway's tweets, the allotment of such a video.

640?wx_fmt=gif

With her own MacBook Pro related operations, enter the command line, a result of execution: error! How wrong? Do you want to look?

No need to!

Simply elegant enter the four letters: FCUK. Then - to write the correct command automatically out, then automatically executed. It is not that simple legendary can rely on it!

Abstract point of view, the whole process is three steps:

640?wx_fmt=png

Why criticize a street, can solve the problem?

Programmers little sister Amway is this. This effect can be achieved, thanks to a man named App The Fuck's.

这是一个功能强大的应用程序,能够自动纠正控制台命令(console commands)中的错误。

举几个例子。

640?wx_fmt=gif

上面的案例里,有一段展示了给命令增补缺失部分。

➜ 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 [enter/↑/↓/ctrl+c][sudo] password for nvbn:Reading package lists… Done

还有一段,展示了如何自动修改手滑错误。

➜ 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

➜ fuckpython [enter/↑/↓/ctrl+c]Python 3.4.2 (default, Oct 8 2014, 13:08:17)

看明白了吧?详细情况就不一一列举了。

出错不要紧,只要一声:fuck。

是不是超好用?The Fuck 支持 Python 3.4 以后的版本,安装起来也非常的简单。苹果电脑 macOS 用户,可以通过 Homebrew 安装:

brew install thefuck

也可以通过 pip 安装:

pip install thefuck

更多安装和更新方式,可以直接到 GitHub 页面上查看。

The F**k 的原理并不复杂,其实就是基于规则的匹配。如果匹配成功,正确的命令行就会被调出执行,有一大堆命令已经是默认开启匹配的。

当然,你如果想自己增加新的规则也是可以的。

整个流程是这样的:

640?wx_fmt=png

默认的 The F**k 需要一些运行时间,如果你想快一点,还可以尝试一下 instant mode 极速模式。

640?wx_fmt=gif

The F**k 的作者是 Vladimir Iakovlev,一位身在荷兰阿姆斯特丹的软件开发者。这个应用比量子位出现的还早,目前在 GitHub 上已有 47.6k 的标星。

地址在此:

https://github.com/nvbn/thefuck

不过讲到这里,故事还没完。

Hyper

Sarah Drasner 小姐姐表面上安利了 The F**k,但是她不经意间,还给网友们种草了另一个神器。

再来看一次小姐姐的推特配图:

640?wx_fmt=gif

放大看一下:

640?wx_fmt=gif

你发现没有,她输入指令的时候,光标是粉红色的,而且带有酷炫的效果。就为这个,一大堆人留言询问:

640?wx_fmt=png

640?wx_fmt=png

上图这几个用户的意思是说:这不断冒火花的光标太酷了,我也想要,我也想要一个这样的终端,真的想要!

好吧好吧,于是小姐姐又安利了一波。

这个就是:Hyper。

640?wx_fmt=png

An HTML / JS / CSS terminal, support for Apple macOS, Microsoft Windows, Debian, Fedora and various Linux platforms.

Installation is very simple, by following this address, go to the official website to download:

https://hyper.is/

Apple macOS users can install the Homebrew way, command is:

brew updatebrew cask install hyper

Microsoft Windows users can use chocolatey installation instructions:

choco install hyper

As for the little sister cool cursor, is this a Hyper terminal in the plug named: hyperpower. After installation, there will be a cool input effects.

Address plug-in here:

https://hyper.is/plugins/hyperpower

640?wx_fmt=gif

On GitHub, Hyper 31k project also starred, at this address:

https://github.com/zeit/hyper


Recommended Reading

(Click on the title to jump to read)

640?wx_fmt=png

Guess you like

Origin blog.csdn.net/red_stone1/article/details/102693812