Had this in every Chef recipe at $previous_job. Probably still there, 7 years later.
SL(1): Cure your bad habit of mistyping
11–20 of 63 posts
Re: SL(1): Cure your bad habit of mistyping
#12 [alias]
git = !sl
catches e.g. `git git status`, which I run shockingly often.Re: SL(1): Cure your bad habit of mistyping
#13After you think you are perfect, then there’s suicide linux: https://github.com/tiagoad/suicide-linux “Any time - any time - you type any remotely incorrect command, the interpreter creatively resolves it into rm -rf / and wipes your hard drive.”
Re: SL(1): Cure your bad habit of mistyping
#14After you think you are perfect, then there’s suicide linux: https://github.com/tiagoad/suicide-linux “Any time - any time - you type any remotely incorrect command, the interpreter creatively resolves it into rm -rf / and wipes your hard drive.”
Re: SL(1): Cure your bad habit of mistyping
#15Re: SL(1): Cure your bad habit of mistyping
#16After you think you are perfect, then there’s suicide linux: https://github.com/tiagoad/suicide-linux “Any time - any time - you type any remotely incorrect command, the interpreter creatively resolves it into rm -rf / and wipes your hard drive.”
This could be neat for production environments in a kind of chaos monkey sense
Re: SL(1): Cure your bad habit of mistyping
#17Re: SL(1): Cure your bad habit of mistyping
#18Re: SL(1): Cure your bad habit of mistyping
#19Re: SL(1): Cure your bad habit of mistyping
#20```
function command_not_found_handler() { figlet "lol, $1" }
```
(I think the bash equivalent is `command_not_found_handle`).
This overrides the function that usually prints the `zsh: command not found: foo` message, and instead, mocks you, by printing "lol, foo" (but in big ol' figlet letters).
SL is in a similar, but admittedly much more elaborate, spirit.