zsh-users
 help / color / mirror / code / Atom feed
From: Philip Kizer <pckizer@tamu.edu>
To: Juhapekka Tolvanen <juhtolv@st.jyu.fi>
Cc: zsh-user mailing list <zsh-users@sunsite.auc.dk>
Subject: Re: Whatta fsck is this?
Date: Mon, 23 Oct 2000 09:18:34 -0500	[thread overview]
Message-ID: <200010231418.JAA09830@gonzo.tamu.edu> (raw)
In-Reply-To: Your message of "Mon, 23 Oct 2000 16:45:10 +0300." <20001023164510.A2947@verso.st.jyu.fi>

Juhapekka Tolvanen <juhtolv@st.jyu.fi> 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 ROOTTEXT='-=*[ROOT ZSH]*=-'
>#  ROOTTEXT=''
>  export ROOTPROMPTADD=' '
>  export ROOTTITLEADD=' | '
>
># ADD THIS TO PROMPT:
># %S$ROOTTEXT%s$ROOTPROMPTADD
># AND THIS TO TITLE:
># $ROOTTEXT$ROOTTITLEADD
>
>#PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
>#export PATH
>
>else
>  ROOTTEXT=''
>  ROOTPROMPTADD=''
>  ROOTTITLEADD=''
>fi

into:

export ROOTTEXT='%(0#.-=*[ROOT ZSH]*=-)'
export ROOTPROMPTADD='%(0#. .)'
export ROOTTITLEADD='%(0#. | .'

etc.?


-philip

-- 
Philip Kizer,
USENIX Liaison to Texas A&M University       <usenix@tamu.edu>
Texas A&M CIS Operating Systems Group, Unix <pckizer@tamu.edu>


  reply	other threads:[~2000-10-23 14:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-23  5:29 Juhapekka Tolvanen
2000-10-23 13:45 ` Juhapekka Tolvanen
2000-10-23 14:18   ` Philip Kizer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-08-25  7:54 Sven Wischnowsky
     [not found] <200008250743.JAA11058@beta.informatik.hu-berlin.de>
2000-08-25  7:51 ` Juhapekka Tolvanen
2000-08-25  6:51 Juhapekka Tolvanen
2000-08-25  6:47 Juhapekka Tolvanen
2000-08-08 12:22 Sven Wischnowsky
2000-08-08 15:04 ` Bart Schaefer
2000-08-08  5:12 Juhapekka Tolvanen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200010231418.JAA09830@gonzo.tamu.edu \
    --to=pckizer@tamu.edu \
    --cc=juhtolv@st.jyu.fi \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).