I have a few "idiot aliases" like that...
alias grpe=grep
alias gerp=grep alias grpe=grep
alias gerp=grepEvery. Single. Time. Sometimes I even typo it many times in a row.
There must be //something// in that combination of letters, because I don't recall ever having that many mistakes with any other commands.
alias gti='/usr/local/bin/git'
alias gut='/usr/local/bin/git' alias fuck='sudo $(fc -nl -1)'
Be very careful with this.I looked at thefuck but it didn't seem to do anything I needed.
shopt -s histverify histreedit
Bash will let you then confirm the actual command it's going to run: sudo !! function fuckgit
rm -rf /tmp/fuckgit/
git clone --no-checkout (git config --get remote.origin.url) /tmp/fuckgit/
rm -rf .git/
mv /tmp/fuckgit/.git .
rm -rf /tmp/fuckgit/
end