bash-it/aliases/available/fuck.aliases.bash

12 lines
245 B
Bash

# shellcheck shell=bash
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