Linux from the command line | Linux Tips & Tricks -- correcting typos in bash
While this may seem silly from looking at the examples, it's really useful when the command you made the mistake in was long and complex.
https://www.ostechnix.com/easily-correct-misspelled-bash-commands-linux/
I thought this would about `alias grp=grep` and `alias sl=ls`
ReplyDeleteJohn Lewis which I think are bad ideas, even though popular.
ReplyDeleteI'm not a fan of getting carried away with aliases as you won't have them on any other system. You're basically creating a non-standard system.
Christopher Gaul Yes, and I have to carry around this dot profile everywhere now. Sigh.
ReplyDeleteI just use fish shell and the tab and right hand arrow keys for completion then it spells them right for me.
ReplyDeleteDaniel Bull bash can be setup to do that as well, just most people don't bother since anyone that can actually type can usually just correct the mistake faster than monkeying around with stuff like this, or that.
ReplyDeleteYeah I have to confess I can't type, learnt all my typing skills on ZX spectrum keyboard ;)
ReplyDelete