alias sl=ls Watch productivity skyrocket
SL(1): Cure your bad habit of mistyping
31–40 of 63 posts
Re: SL(1): Cure your bad habit of mistyping
#32I so often type "nevermind" instead of "never mind" that I created a shortcut on my computer that replaces the former with the latter. I have met many other people of my generation (early 40s) who also thought it was a single word. I think we were influenced by the popular Nirvana album, which used the single-word spelling.
Re: SL(1): Cure your bad habit of mistyping
#33Embrace your habit of mistyping: https://github.com/nvbn/thefuck#readme
I use that all the time as a shortcut to push new git branches without having to type the whole name.
I don't know how I would live without that. I tend to make rather verbose branch names and typing it all out stuff like push would take forever.
Though, you have a much more fun solution.
Re: SL(1): Cure your bad habit of mistyping
#34I so often type "nevermind" instead of "never mind" that I created a shortcut on my computer that replaces the former with the latter. I have met many other people of my generation (early 40s) who also thought it was a single word. I think we were influenced by the popular Nirvana album, which used the single-word spelling.
If enough people spell something "wrong" it automatically becomes the correct (or rather, standard) spelling, and words can have more than one correct spelling, too.
Re: SL(1): Cure your bad habit of mistyping
#35Part of this tool’s “charm” is that it traps SIGINT so you truly are forced to watch the animation as a punishment for bad typing, even if you try to send it SIGINT from your keyboard by typing control-C.
Control-backslash sends SIGQUIT on the other hand. This signal cannot be trapped.
Perhaps sl could launch a parent process and a child process, put the child in a different process group, then restart the child if the parent sees it do a core dump?
Or launch two children — one of them daemonized — where the daemon attaches a new sl to your terminal if it sees its sibling one die prematurely. You could still get back to an interactive shell with the right signal but sl would keep annoying you by drawing a train over the top.
Re: SL(1): Cure your bad habit of mistyping
#36Re: SL(1): Cure your bad habit of mistyping
#37Embrace your habit of mistyping: https://github.com/nvbn/thefuck#readme
I use that all the time as a shortcut to push new git branches without having to type the whole name.
Re: SL(1): Cure your bad habit of mistyping
#38 # some common typos
alias grpe grep
alias gpre grep
alias mroe more
alias mreo more
alias rmeo moreRe: SL(1): Cure your bad habit of mistyping
#39But then I realized, I rarely ever do `ls` itself - it's always either `ll` = alias for `ls -lh` or `la` = alias for `ll -A`. And those seem less typo prone, somehow.
Re: SL(1): Cure your bad habit of mistyping
#40SL(1): Learn the muscle-memory to send SIGQUIT all the time Part of this tool’s “charm” is that it traps SIGINT so you truly are forced to watch the animation as a punishment for bad typing, even if you try to send it SIGINT from your keyboard by typing control-C. Control-backslash sends SIGQUIT on the other hand. This signal cannot be trapped. Perhaps sl could launch a parent process and a child process, put the chi…
Yes, it can.