zshrc: Switch `minimal-shell()' from ksh93 to mksh
authorFrank Terbeck <ft@bewatermyfriend.org>
Mon, 1 Mar 2010 16:50:10 +0000 (17:50 +0100)
committerFrank Terbeck <ft@bewatermyfriend.org>
Mon, 1 Mar 2010 16:50:10 +0000 (17:50 +0100)
commite7f84863ff37d54cc2b99e259b4aa2698543a767
treeb456efeab5f0c7e32171ddb051d7f8dae679b506
parent802321b9d6feeda65df5d4055267e68e11ef053d
zshrc: Switch `minimal-shell()' from ksh93 to mksh

As announced in:
    <http://ml.grml.org/pipermail/grml-devel/2010-February/000011.html>

The minimal-shell() function now checks if the shell in question (mksh)
is available and if so, executes it with an empty environment, with only
TERM and HOME set. The mksh setup used sets a number of other
environment variables (such as $VISUAL, $EDITOR and $PAGER).

One added feature is that the mksh prompt shows non-zero return values
from programs you ran:

[snip]
    (3)-~$ false
    [1]-(4)-~$ true
    (5)-~$
[snap]

The prompt does *not* feature any eye-candy such as standout or colour
sequences. It should therefore run in pretty much every terminal.

Special keys are set up via terminfo if `infocmp' is available.
Otherwise mksh's rather sane defaults are used.
debian/changelog
etc/minimal-shellrc
etc/zsh/zshrc