kotajacob / kota-prompt

Read-only mirror of https://git.sr.ht/~kota/kota-prompt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)'

About

Read-only mirror of https://git.sr.ht/~kota/kota-prompt

License:GNU General Public License v3.0


Languages

Language:Shell 100.0%