This commit is contained in:
Cristian Măgherușan-Stanciu @magheru_san 2017-05-04 15:02:08 +00:00 committed by GitHub
commit 0770abeba1

View file

@ -0,0 +1,6 @@
if [[ -n $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