I'm appalled. Setting
alias please='sudo !!'
returns with
sudo: !!: command not found
rather than doing what sudo !! does. How do I make this work?
@jawsh https://unix.stackexchange.com/questions/85352/how-can-i-alias-sudo
@unused0 alias please='sudo $(fc -ln -1)' seems to do the trick! :)
Sign in to follow profiles or hashtags, favourite, share and reply to posts. You can also interact from your account on a different server.