Merge pull request #1507 from davidpfarrell/plz

Add fuck/please aliases, playing nicely with thefuck plugin
pull/1509/head
Nils Winkler 2020-02-27 08:58:46 +01:00 committed by GitHub
commit 223398c9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,11 @@
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

View File

@ -1,2 +0,0 @@
# https://github.com/nvbn/thefuck
alias please='fuck'