Nov 28 2010
Fixing Terminal.app window titles where directory names contain extended characters…
This one may be a little esoteric, but I’ve always configured my ~/.bashrc to set $PS1 in bash to a simple ‘$ ‘, but show all relevant information in the terminal (or screen) window title.
This is generally fine but, on OS X at least, if a directory name contains an extended character such as ‘Æ‘ then what actually happens is that all characters are sent to the window title except for the extended character, which is pre-pended to the prompt for the following line. Being a double-byte character, this then confused the shell’s line-editing abilities, and characters have a tendency to disappear if the cursor keys are used for editing.
After suffering with this for several months, this interesting problem reached my needs-a-fix threshold and I decided to do something about it 😉
Jan 29 2011
ALIX USB support
I have a PC Engines alix2d3 single-board computer – a really nice compact system with an AMD Geode processor, 256MB RAM, compact flash storage and three 10/100MB network ports – acting as my traffic-shaper and network gateway. Since this machine is extremely reliable, always on, and has spare USB ports it seemed like a sensible place to plug in the USB cable from my new UPS. There have been several power-cuts recently (some due to external factors, and some due to a dodgy toaster!) and the time spent recovering filesystems from unexpected restarts was starting to become inconvenient…
More
By Stuart • Technology, UNIX 0