Add fuck/please aliases, playing nicely with thefuck plugin

pull/1507/head
David Farrell 2020-02-26 10:28:10 -08:00
parent 8fc6f82455
commit d6425922a1
No known key found for this signature in database
GPG Key ID: 1CCA28D0E300B56F
1 changed files with 11 additions and 2 deletions

View File

@ -1,2 +1,11 @@
# https://github.com/nvbn/thefuck cite 'about-alias'
alias please='fuck' 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