2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Zsh — Mac で Option キーを bindkey に使う

Last updated at Posted at 2018-08-26

おそらくOptionキーそのものをバインド出来るわけではなく、Optionキーとの組み合わせで入力される「文字」に対してのバインドが出来るっぽい。

Mac で Option + a のキーをバインドする例。

bindkey å accept-line

( a ではなく å )

どうやって探したか?

Ma で Option + a を入力すると å が表れる。
たんにこの文字をバインドキーとして使っただけ。

その他の文字

同じやり方で、その他の文字もバインド出来るはず。

# 1234567890-^\
¡™£¢∞§¶•ªº–≠\

# qwertyuiop@[
œ∑´®†¥¨ˆøπ“‘

# asdfghjkl;:]
åß∂ƒ©˙∆˚¬…æ«

# zxcvbnm,./_
Ω≈ç√∫˜µ≤≥÷`

非英語の文字のバインド

こんな事もできるんだ。

bindkey -s "日本語" "Japanese"

When input "日本語" then it will be replaced with "Japanese".

Versions

  • zsh 5.5.1 (x86_64-apple-darwin17.5.0)

Ref

Links

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?