知乎專欄 | 多維度架構 | 微信號 netkiller-ebook | QQ群:128659835 請註明“讀者” |
鍵盤映射配置檔案,用戶不同終端下的鍵盤定義
% grep -v '^#' /etc/inputrc | grep -v "^$" set input-meta on set output-meta on $if mode=emacs "\e[1~": beginning-of-line "\e[4~": end-of-line "\e[3~": delete-char "\e[2~": quoted-insert "\e[1;5C": forward-word "\e[1;5D": backward-word "\e[5C": forward-word "\e[5D": backward-word "\e\e[C": forward-word "\e\e[D": backward-word $if term=rxvt "\e[8~": end-of-line "\eOc": forward-word "\eOd": backward-word $endif $endif