Vi Indicator For Loksh

When I switched from bash to (lo)ksh I did so because of bash being too bloated and prone to become slow under certain circumstances. However, there was a feature that I missed from bash – the ability to indicate vi modes (normal, input & replace).

I couldn't find anyone already having implemented this feature in ksh, so I thought that I could do it myself. I made the implementation quite simple and straight forward. When using vi-mode and at the same time having the string '[xxx]' somewhere in the PS1 environment variable, the selected mode will be indicated between the first '[' and ']'. What's between the brackets will act as placeholder, which requires the indicators to be of the same size.

I have my own fork of (lo)ksh in my repositories together with the commit. Feel free to use it. I also have a patch available here.

The Lenovo Thinkpad T400

After being tired of being tied to my stationary workstation I finally got myself into buying a laptop. I didn't want a new fancy laptop I would have to replace in 2 years, due to it being filled with gunk, overheating or in general just fail. Modern laptops tend to be consumables. So, after some research I found that the Lenovo T400 should be stable, easy to fix, and also possible to libreboot (something that I've been interested in doing).

I found a rather cheap one with some minor scratches on the top cover and a broken hard drive with a price of around $100. I replaced the keyboard, bought a new SSD, 8 GB of RAM, a new wireless NIC – and it was as good as new. After flashing the BIOS (which meant I had to disassemble everything to access the SPI pins) it gave me a cold boot time of about 10 seconds or less (I haven't timed it).

This will be my main computer from now on, as it easily replaces my stationary workstation with a docking station I found at a flee market. I will probably buy another one just to be sure I have spare parts in case the motherboard breaks fubar.