Add fuck/please aliases, playing nicely with thefuck plugin
parent
8fc6f82455
commit
d6425922a1
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue