feat: Display Vi mode as PROMPT (#169)

Add Vi-mode indicator for zsh
This commit is contained in:
Shu Kutsuzawa
2019-08-18 04:33:19 +09:00
committed by Kevin Song
parent 9c213b36b0
commit d90c43b8b1
6 changed files with 56 additions and 13 deletions
+10
View File
@@ -43,6 +43,14 @@ fn main() {
.help("The execution duration of the last command, in seconds")
.takes_value(true);
let keymap_arg = Arg::with_name("keymap")
.short("k")
.long("keymap")
.value_name("KEYMAP")
// zsh only
.help("The keymap of zsh")
.takes_value(true);
let jobs_arg = Arg::with_name("jobs")
.short("j")
.long("jobs")
@@ -69,6 +77,7 @@ fn main() {
.arg(&status_code_arg)
.arg(&path_arg)
.arg(&cmd_duration_arg)
.arg(&keymap_arg)
.arg(&jobs_arg),
)
.subcommand(
@@ -82,6 +91,7 @@ fn main() {
.arg(&status_code_arg)
.arg(&path_arg)
.arg(&cmd_duration_arg)
.arg(&keymap_arg)
.arg(&jobs_arg),
)
.get_matches();