2014-08-02 – I’ve since got this covered:
- dir.sh
-
dos-style-dir.sh for old stuff.
The simple way to reproduce this is:
\mkdir source \cp source target
It’s a pretty simple request. I want to copy a directory. I want to copy and not create the directory. I don’t want any of the contents (cp -r), I just want the container itself, without using mkdir. I don’t want to diddle around with the contents of the directory (moving them around) and then do cp -r. I want to copy the container because I want to match the permissions. I don’t want to separately use other commands to sync permissions:
\chmod --reference=source target \chown --reference=source target
Why can’t cp do this? Oh right, it’s GNU .. so it sucks.
Since I’m becoming more confident with shell programming every day, on a whim I jotted down some scripting ideas.
The notes sat there for only a day before I decided to stay up late and work on them. I actually managed to figure them out too!
2015-05-10 update – I’ve been using some more complex stuff, which can be found around my shell-random/zsh github repository. See 3-interactive.sh and colours.sh
I’m pleased to announce that I’m the very first user to have ANSI colour in a zsh prompt. Yep, the very first. I must be, since there is no example to be found anywhere. After a serious amount of searching and fist-shaking at vague documentation, I was able to hack it out myself.
My solution is still incomplete though. Let’s walk through this nonsense..
The 9×15 font versus DOSEMU’s vga font
![]() 9×15
|
![]() vga
|
I dipped into my archives to fish out the old DOSEMU vga font. It is a thing of beauty.
The 9×15 existed on Lubuntu and I must have been using it throughout my time up until Lubuntu’s retirement on 2016-03-26.