Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meta and # in a UK mac terminal

Tags:

terminal

macos

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?

like image 506
Tom Dunham Avatar asked Oct 04 '09 19:10

Tom Dunham


1 Answers

I am using zsh and the following saved my day:

bindkey -s '^[3' \#
like image 161
ericteubert Avatar answered Oct 13 '22 12:10

ericteubert