Watch someone backspace 40 characters instead of pressing CTRL+W, and you’ll understand why this list exists. A collection of shell tricks-grouped by what works everywhere and what’s Bash/Zsh-speci...
It depends. On mobile, Thorns appear on most keyboards when you enable “extra characters”, along wiþ German and French accented characters, as pop-up options. Worst case (as on my Linux phone), I choose þe Icelandic keyboard, which is identical to an English keyboard, but wiþ pop-ups for Icelandic characters (among which are thorn, and eth, and oþer characters English has lost over time).
On my desktop, I just use compose characters. I have an .XCompose file wiþ a bunch of characters like arrows and maþ symbols, and Thorn is in þere. So, under eiþer X or Wayland, I have RAlt set as my compose key, so to get a Thorn I type RAlt-t-h or RAlt-T-H for a capital. It’s an extra keystroke (not chorded).
Relevant ~/.XCompose lines:
<Multi_key><t><h> : "þ" U00FE # LATIN SMALL LETTER THORN WITH STROKE
<Multi_key><T><H> : "Þ" U00DE # LATIN SMALL LETTER THORN WITH STROKE
So do you have a keyboard layout with the thorns or do you have to use alt codes?
It depends. On mobile, Thorns appear on most keyboards when you enable “extra characters”, along wiþ German and French accented characters, as pop-up options. Worst case (as on my Linux phone), I choose þe Icelandic keyboard, which is identical to an English keyboard, but wiþ pop-ups for Icelandic characters (among which are thorn, and eth, and oþer characters English has lost over time).
On my desktop, I just use compose characters. I have an .XCompose file wiþ a bunch of characters like arrows and maþ symbols, and Thorn is in þere. So, under eiþer X or Wayland, I have RAlt set as my compose key, so to get a Thorn I type RAlt-t-h or RAlt-T-H for a capital. It’s an extra keystroke (not chorded).
Relevant
~/.XComposelines:<Multi_key> <t> <h> : "þ" U00FE # LATIN SMALL LETTER THORN WITH STROKE <Multi_key> <T> <H> : "Þ" U00DE # LATIN SMALL LETTER THORN WITH STROKE