There’s already some great answers in the thread, so I won’t add to those.
Some shortcuts are shell-specific. For example, !!, !:$, and ^old^new are in bash, but not in fish.
Some things, like Alt-. and Ctrl-a, are implemented by readline, which can be used elsewhere, as well, for example in the python interpeter.
Depending on your context, it may be better to invest time learning methods implemented by readline. While not necessarily universal, they are more versatile.
There were heaps of functions I was using not realising they were from readline. For example, Ctrl-r for reverse interactive search, Ctrl-a/e for start/beginning if line, Ctrl-w for deleting a word.
There’s already some great answers in the thread, so I won’t add to those.
Some shortcuts are shell-specific. For example,
!!,!:$, and^old^neware inbash, but not infish.Some things, like
Alt-.andCtrl-a, are implemented byreadline, which can be used elsewhere, as well, for example in the python interpeter.Depending on your context, it may be better to invest time learning methods implemented by
readline. While not necessarily universal, they are more versatile.There were heaps of functions I was using not realising they were from readline. For example,
Ctrl-rfor reverse interactive search,Ctrl-a/efor start/beginning if line,Ctrl-wfor deleting a word.