こんな人向け
- 会社では普段と違うPCのためよくtypoする!
- gitコマ○ドうろ覚え!
- コマン○を微妙に間違って覚えてしまってaliasしてる!
- とりあえずThe Fuckしたい!!
- 「fuck!」が口癖!!!
そんなあなたに thefuck
The Fuckイン○トール
環境別
pip
sudo pip install thefuck
brew
brew install thefuck
or
sudo easy_install thefuck
apt-get
sudo apt-get install python-pip python-dev
sudo pip install psutil thefuck
dnf
sudo dnf install python-pip python-devel
sudo pip install thefuck
イ○ストール後
.bashrc
とか.bash_profile
とかにeval "$(thefuck --alias)"
を追記
使う
git st○tus
$ git sttus
git: 'sttus' is not a git command. See 'git --help'.
Did you mean this?
status
$ fuck
git status [enter/↑/↓/ctrl+c]
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
gi◯
$ gi pull
-bash: gi: command not found
$ fuck
git pull [enter/↑/↓/ctrl+c]
remote: Counting objects: 354, done.
remote: Compressing objects: 100% (246/246), done.
remote: Total 354 (delta 85), reused 5 (delta 5), pack-reused 13
p○thon
$ puthon
-bash: puthon: command not found
$ fuck
python [enter/↑/↓/ctrl+c]
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
かんぺき!
これで毎日元気にfuck
!
昨今windowsでもbashが使えてapt-get
もできるらしいのでThe Fuckワンチャンあるかも?!