IsuCsie / Linux-tools

整理一些Linux上好用的小工具(裝B用)
3 stars 2 forks source link

[推薦] The Fuck #1

Closed dca closed 9 years ago

dca commented 9 years ago

The Fuck

2015 年殺手級應用,帶給你更好的 cli 體驗

https://github.com/nvbn/thefuck

examples:

➜ 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?

➜ fuck
sudo apt-get install vim
[sudo] password for nvbn:
Reading package lists... Done
...
➜ 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

➜ fuck
git push --set-upstream origin master
Counting objects: 9, done.
...
mouse170 commented 9 years ago

已新增 04755b8388b8df3de4b47ebf6242d43d208697d1 ,感謝建議。