Merge pull request #1507 from davidpfarrell/plz

Add fuck/please aliases, playing nicely with thefuck plugin
This commit is contained in:
Nils Winkler
2020-02-27 08:58:46 +01:00
committed by GitHub
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'