Hugues Moretto-Viry dixit:
>First, sorry for the empty message but new Google message interface is
>pissing me off...
Ah, best to avoid Google altogether…
>About set -x, here a more verbose output:
>
>+ typeset d=/home/mad p=~[[ = ?(*/) ]]
>mksh: read-only:
Okay, I see.
You did the mistake of ignoring the newlines I put into the PS1
rendition. I did some of them for readability, but some were
necessary (and some were backslash-escaped even, which need
specific treatment were you to collapse the lines).
If you really want a minimum form (one line), use this:
PS1=$'\a\r\a\e[1;34m\a┌─| \a\e[36m\a${USER:=$(ulimit -c 0; id -un 2>/dev/null
|| echo \?)}\a\e[34m\a |──| \a\e[0;33m\a$(local d=${PWD:-?} p=~; [[ $p = ?(*/)
]] || d=${d/#$p/~}; print -nr -- "$d")\a\e[1;34m\a |\n└─| \a\e[32m\a$(date
+%H:%M)\a\e[34m\a |─>>\a\e[0m\a '
If your Google webinterface does not let you read that cleanly,
go to http://news.gmane.org/gmane.os.miros.mksh (they also have
a Usenet/NNTP interface which lets you get the message in its
pristine original form).
bye,
//mirabilos
--
08:05⎜<XTaran:#grml> mika: Does grml have an tool to read Apple
⎜ System Log (asl) files? :)
08:08⎜<ft:#grml> yeah. /bin/rm. ;) 08:09⎜<mrud:#grml> hexdump -C
08:31⎜<XTaran:#grml> ft, mrud: *g*