Readline is a library that enables Emacs-style shortcuts in the terminal (and other programs), such as Ctrl-A to jump to the start of the line, Meta-W to jump a word, Meta-B to jump a word back, etc. This works on Windows, Linux and Mac.
Now, i18n is where it gets hard, as usual, but only on macOS. The thing is that in the Terminal (or Iterm2) on macOS this does not work out of the box, as you explicitly need to enable the option "Use Opt as a Meta key" in the Terminal settings.
But by doing so, you lose out on the ability to use the Opt/Alt key for its other, much more common uses, as you now cannot type any of the characters needing Alt. In Norwegian layouts you need Alt to type square brackets, tilde and backtics, which is a pretty essential thing for most programmers ...
Now, for me, this led me to a life of dual layouts: switching between US keyboard layout for programming and NO for other stuff. That life is drag. Is there a way of keeping my sanity that enables me to use readline shortcuts in the terminal while keeping my standard Norwegian layout?
Related to this vim question