From 9eddeae6b6831f940999b303d0a15f923009772d Mon Sep 17 00:00:00 2001 From: sup39 Date: Mon, 18 May 2020 23:38:25 +0900 Subject: [PATCH] =?UTF-8?q?map=20=C2=A5=20to=20\;=20change=20PS1=20color?= =?UTF-8?q?=20to=2049?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 5afb531..1ee2dbf 100644 --- a/zshrc +++ b/zshrc @@ -14,6 +14,9 @@ setopt appendhistory bindkey -v # imap jk to bindkey -Mviins -s jk '\e' +# map ¥ to \ +bindkey -Mvicmd -s r¥ 'r\' +bindkey -Mviins -s ¥ '\\' ## Edit # edit zshrc @@ -43,7 +46,7 @@ function zle-line-init zle-keymap-select { vicmd) # normal mode PS1="%F{200}%n@$host%f:%1~%# ";; main) # insert mode - PS1="%F{50}%n@$host%f:%1~%# ";; + PS1="%F{49}%n@$host%f:%1~%# ";; esac zle reset-prompt }