noxz-sites

A collection of a builder and various scripts creating the noxz.tech sites
git clone https://noxz.tech/git/noxz-sites.git
Log | Files | README | LICENSE

noxz.tech/articles/vi_indicator_for_loksh/index.www
1When I switched from bash to (lo)ksh I did so because of bash being too bloated
2and prone to become slow under certain circumstances. However, there was a
3feature that I missed from bash \(en the ability to indicate vi modes (normal,
4input & replace).
5
6I couldn't find anyone already having implemented this feature in ksh, so I
7thought that I could do it myself. I made the implementation quite simple and
8straight forward. When using vi-mode and at the same time having the string
9.I '[xxx]'
10somewhere in the 
11.I PS1
12environment variable, the selected mode will be indicated between the first
13.I '['
14and
15.I ']' .
16What's between the brackets will act as placeholder, which requires the
17indicators to be of the same size.
18
19.PIMG usage.png
20
21I have my own
22.URL //noxz.tech/git/loksh-noxz.git fork
23of (lo)ksh in my repositories together with the commit.
24Feel free to use it. I also have a patch available
25.URL loksh-viprompt-20190502-774e6d2.patch here .