fuck: added a basic plugin for https://github.com/nvbn/thefuck
parent
e38455bf4f
commit
0da9a4be25
1 changed files with 6 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||||||
|
if [ $commands[thefuck] ]; then |
||||||
|
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R' |
||||||
|
alias FUCK='fuck' |
||||||
|
else |
||||||
|
echo 'thefuck is not installed, you should "pip install thefuck" first' |
||||||
|
fi |
||||||
Loading…
Reference in new issue