Add fuck/please aliases, playing nicely with thefuck plugin

This commit is contained in:
David Farrell
2020-02-26 10:28:10 -08:00
parent 8fc6f82455
commit d6425922a1

View File

@@ -1,2 +1,11 @@
# https://github.com/nvbn/thefuck
alias please='fuck'
cite 'about-alias'
about-alias 'fuck/please to retry last command with sudo'
# Play nicely with 'thefuck' plugin
if ! _command_exists fuck ; then
alias fuck='sudo $(fc -ln -1)'
fi
alias please=fuck
alias plz=please
alias fucking=sudo