~kota/kota-prompt

My vi-mode zsh prompt
add old-style zsh plugin file
initial commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~kota/kota-prompt
read/write
git@git.sr.ht:~kota/kota-prompt

You can also use your local clone with git send-email.

#Kota's vi mode prompt

Your prompt will be set to your current path, but substituting ~ for /home/username. It will turn red if the last command had a non-zero exit status and will turn blue when in vi normal mode.

The code is very simple so you can easily customize the colors or whatever.

To use set PROMPT='$(vi_mode_status)'