]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Reset (green) cursor colour before command is executed
authorSergey Matveev <stargrave@stargrave.org>
Sun, 4 Sep 2022 17:39:06 +0000 (20:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 4 Sep 2022 17:39:07 +0000 (20:39 +0300)
After visual editing, cursor colour stays red.

zsh/.zsh/rc/015prompt.zsh

index abd25029b242806f692185b508cba7673a86cd11..194cdd5e838cbad190036bc9f4b6e31ba83fe2c3 100644 (file)
@@ -31,6 +31,7 @@ zle -N zle-line-init
 zle -N zle-keymap-select
 
 preexec() {
+    printf "\e]12;green\e\\"
     SECONDS=0
 }