In the mac terminal application there is a setting (preferences -> keyboard) that lets you set "use option as meta key". This is useful as a lot of unix boxes use bash
as default shell and that has emacs keybindings M-f
and M-b
that let you skip words.
Problem is that on a Mac with a UK keyboard the #
symbol is tricky to get to - normally it can be typed with alt-3
, but not if you are in a terminal and alt=meta.
Anyone have a nice way round this?
I am using zsh
and the following saved my day:
bindkey -s '^[3' \#
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With