4 ms·
I have a few "idiot aliases" like that... alias grpe=grep alias gerp=grep
by blakesterz 9y ago
I have a few "idiot aliases" like that...
alias grpe=grep
alias gerp=grep
- mulmen 9y agoMy personal favorite is: alias fuck='sudo $(fc -nl -1)' Be very careful with this.
- epse 9y agoWhat about the actual program thefuck? It can fix more than just sudo, and asks you to confirm
- ben509 9y agoOr make history work for you: shopt -s histverify histreedit Bash will let you then confirm the actual command it's going to run: sudo !!
- mulmen 9y agoI use zsh and I don't know what shopt is. That's two commands and !! doesn't work in aliases.
- StavrosK 9y agoHere's one of my aliases for you: 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
- oldgun 9y agoI think you can try this. https://github.com/nvbn/thefuck https://github.com/nvbn/thefuck
- Twirrim 9y agoalias gti='/usr/local/bin/git' alias gut='/usr/local/bin/git'
- strkek 9y ago> grpe Every. 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.
- lallysingh 9y agoI think that many of my typos occur when switching between letters on one hand vs the other. I figure it's a brain hemisphere synchronization thing.