Embrace Woclema, weblogging software for discriminating people like yourself. :-) Written in Perl and using PostgreSQL as database engine, highly original name Woclema stands for Weblog, Originally Command Line Editable/Manageable. Woclema comes with sophisticated front-end which, erm, allows you to feed in your entries using your favourite text editor and shell, be it combination of zsh/vim, Bash/Emacs, or any of the countless combinations.
Woclema started as simple Perl/PostgreSQL weblog thingie that could be edited and maintained with command line tools. Woclema supports entry categories, user comments, and permanent links (as long as primary keys in DB stay the same). It uses CSS for layout, so it should be fairly easily themed. Currently there is no spam protection for comments, nor any kind of interface to post or maintain the weblog using web-browser. However implementing neither should be a problem.
Woclema does not have any kind of markup language, nor does it hold your hand to prevent you from hurting yourself. It allows editors to insert HTML without artificial limitations. It does not allow others to do the same -- for comments, text is HTMLized, i.e. potentially dangerous characters are written as entities such as <.
While my personal weblog isn't exactly a prime example of a weblog in action, so far it's the only installation of Woclema I am aware of. :-) Feel free to have a look and perhaps even write a comment.