Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.
Finally I've written a small shell function that corrects "gi tpull" to "git pull", because that happens at least once a day.
Keyword: Backups.
This is similar to how busybox binary implements a bunch of the tools from coreutils etc.
My wife drafts a lot of legal documents, and has a problem with "doe snot". Which unfortunately the spelling checker is perfectly happy with.
(That said, if it were me, I’m not sure if I would give up typing doe snot every once in a while.)
EDIT: as mentioned below, it is called 'sl'
(me earlier this month: https://twitter.com/sailoremo/status/908390247548911617)
I think any command where you might start to type something out, but then need to refer to another window or session to figure out what else you want to type, is vulnerable to this kind of mistake.
This process should happen behind the scenes. And then train a RNN for translating it to the following command, which returns a success code. Perhaps, we need to add a few checks that successful command has the same intent as the one which returned 127 error code to the shell.
alias g='git status -sb'
alias ga='git add'
alias gac='git commit --amend'
alias gb='git branch'
alias gbb='git checkout -b'
alias gbm='git branch --merged'
alias gbn='git branch --no-merged'
alias gc='git commit -m'
alias gcp='git cherry-pick'
alias gco='git checkout'
alias gd='git diff'
alias gdc='git diff --cached'
alias gg='git status'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias gla='git log --all --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit'
alias ggpublish='git push && git push --tags && npm publish'
alias gp='git pull --rebase && git push'
alias gpp='git push && git push --tags'
alias gpl='git pull --rebase --prune'
alias gpt='git pull --rebase && git push --tags'
alias grb='git rebase'
alias grc='git rebase --continue'
alias gsp='git stash ; gp ; git stash pop'
alias unfuckgitremote='git branch --set-upstream-to=origin/`git rev-parse --abbrev-ref HEAD` `git rev-parse --abbrev-ref HEAD`'
I have to admit I use `unfuckgitremote` more often than you'd hope.https://github.com/robbyrussell/oh-my-zsh/blob/master/plugin...
why type 8 characters 100 times a day, when you can type 1?
Not hatin. Just wondering if I'm alone.
[0] https://github.com/mtoyoda/sl [1] http://r-wos.org/hacks/gti
Can you disable that feature somewhere ? The suggestion is good, but automatically doing the corrected query is not!