From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2891 invoked from network); 23 Oct 2000 16:51:45 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 23 Oct 2000 16:51:45 -0000 Received: (qmail 26802 invoked by alias); 23 Oct 2000 16:51:30 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3469 Received: (qmail 26795 invoked from network); 23 Oct 2000 16:51:30 -0000 Date: Mon, 23 Oct 2000 19:51:28 +0300 From: Juhapekka Tolvanen To: zsh-user mailing list Subject: [juhtolv@st.jyu.fi: Re: Whatta fsck is this?] Message-ID: <20001023195128.B15937@verso.st.jyu.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2i Organization: =?iso-8859-1?Q?Overhovel_of_Jyv=E4skyl=E4?= X-URL: http://www.jyu.fi/~juhtolv/ X-Mailer-URL: http://www.mutt.org/ X-Editor: Vim http://www.vim.org/ X-Operating-System: Linux 2.2.17pre16 on an i586 On Mon, 23 Oct 2000, +17:18:56 EEST (UTC +0300), Philip Kizer pressed these keys: > Juhapekka Tolvanen wrote: > >Argh! It was b0rken! That does not fscking work, when I am rewt. > > Not to answer the larger question, but why don't you "simplify" the > optional root bits in this from: > > ># {{{ Am I root? > > > >if (( EUID == 0 )) > >then > > export ROOTTEXT='-=*[ROOT ZSH]*=-' > > export ROOTPROMPTADD=' ' > > export ROOTTITLEADD=' | ' > > > >else > > ROOTTEXT='' > > ROOTPROMPTADD='' > > ROOTTITLEADD='' > >fi > > into: > > export ROOTTEXT='%(0#.-=*[ROOT ZSH]*=-)' > export ROOTPROMPTADD='%(0#. .)' > export ROOTTITLEADD='%(0#. | .' > > etc.? Very interesting. Can you explain, what that kind of markup means? What TFM or section of "info zsh" should I read? -- Juhapekka "naula" Tolvanen * * * U of Jyväskylä * * * juhtolv@st.jyu.fi http://www.cc.jyu.fi/~juhtolv/index.html * * "STRAIGHT BUT NOT NARROW!" ----------------------------------------------------------------------- "Rakasta mua, tai vihaa mua. Hei, kuinka vaan. Kai sillä sitten voit jotain uutta saavuttaa. Kai mä ansaitsen uuden tilaisuuden. Kai mä ansaitsen. Hei, mä tiedän sen. Olen liikaa. Minä olen liikaa." Apulanta