D1488.show-mode-line.v2.bashrc (607B)
1 # -*- mode: sh; mode: sh-bash -*- 2 3 set -o vi 4 bind '"\C-l": clear-screen' 5 6 # bind 'set show-mode-in-prompt on' 7 # bind $'set vi-cmd-mode-string \1\eD\eM\e7\e[9999B\r\e[K\e[1m~\e[m\e8\2' 8 # bind $'set vi-ins-mode-string \1\eD\eM\e7\e[9999B\r\e[K\e[1m-- INSERT --\e[m\e8\2' 9 # PS0=$'\1\e7\e[9999B\e[2K\e8\2' 10 11 CMD='\e[1m~\e[m' 12 INSERT='\e[1m-- INSERT --\e[m' 13 bind 'set show-mode-in-prompt on' 14 bind $"set vi-cmd-mode-string \1\eD\eM\e7\e[9999B\r\e[K\e[1m$CMD\e[m\e8\2" 15 bind $"set vi-ins-mode-string \1\eD\eM\e7\e[9999B\r\e[K\e[1m$INSERT\e[m\e8\2" 16 PS0=$'\1\e7\e[9999B\e[2K\e8\2' 17 #PS4=$'\1\e7\eD\eM\e[9999B\e[2K\e8\2'