你是不是经常在终端敲错命令,其实这都是因为该死的终端不配合,不能领会你的意思。
每当这个时候,甚至当你一再敲错到时候,你的内心肯定是崩溃的,一定在默念“……”。
而现在,是让你的终端觉悟的时候了!
有位名为@liamosaur[1]的哥们就忍不住对自己的终端发出了愤怒的吼声[2],并付诸实践:
受此启发,一位名为Vladimir Iakovlev程序员对这个该死的终端发出了致命一击!他以及他的90 位愤怒的小伙伴们[3]打造出了一个名为 “the禁用词语[4]” 的神器!
当你的终端没有按你想象的输入命令时,请禁用词语它!
当你的终端没有按你想象的以 sudo 执行命令时,请禁用词语它!
当你的的终端不知道填上显而易见的参数时,请禁用词语它!
当你输入错误的命令时:
puthon
No command 'puthon' found, did you mean:
Command 'python' from package 'python-minimal' (main)
Command 'python' from package 'python3' (main)
zsh: command not found: puthon
禁用词语
python [enter/↑/↓/ctrl c]
Python 3.4.2 (default, Oct 8 2014, 13:08:17)
...
当你忘记输入参数时:
git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin master
禁用词语
git push --set-upstream origin master [enter/↑/↓/ctrl c]
Counting objects: 9, done.
...
当你输入错误的参数时:
git brnch
git: 'brnch' is not a git command. See 'git --help'.
Did you mean this?
branch
禁用词语
git branch [enter/↑/↓/ctrl c]
* master
当你忘记输入sudo时:
apt-get install vim
E: 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?
禁用词语
sudo apt-get install vim [enter/↑/↓/ctrl c]
[sudo] password for nvbn:
Reading package lists... Done
...
如果生活是如此的不如意,你可以不断的“教诲”它:
aptget install vim
No command 'aptget' found, did you mean:
Command 'apt-get' from package 'apt' (main)
zsh: command not found: aptget
禁用词语
aot-get install vim [enter/ctrl-c]
E: 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?
还需要权限?再来!
禁用词语
sudo apt-get install vim [enter/ctrl-c]
[sudo] password for nvbn:
Reading package lists... Done
Building dependency tree... 0%
... ...
虐我千百遍 我待如初恋
好了,我想你肯定也想拥有这样的神器,请如此这般……
我要这个神器!
环境需求
首先,你需要这些:
python (2.7 or 3.3 )
pip
python-dev
安装
然后,在不同的操作系统上(没错,有 Python 的地方就行):
在 Ubuntu 上可以通过apt安装:
sudo apt update
sudo apt install python3-dev python3-pip
pip3 install --user the禁用词语
OS X 上使用Homebrew
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|