From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-users@sunsite.auc.dk
Subject: Re: PROMPT
Date: Thu, 17 Jun 1999 16:42:44 +0000 [thread overview]
Message-ID: <990617164244.ZM5833@candle.brasslantern.com> (raw)
In-Reply-To: <Pine.LNX.4.10.9906171727180.11755-100000@ihp-pc7.ethz.ch>
In-Reply-To: <9906171520.AA21502@ibmth.df.unipi.it>
On Jun 17, 5:32pm, Oliver Grimm wrote:
} Subject: Re: PROMPT
}
} precmd ()
} {
} if test "$UID" = 0; then
} PS1="%m:`pwd -r` # "
} else
} PS1="%n@%m:`pwd -r` > "
} fi
} }
}
} this defines a function that is called every time anything is executed
} by the shell, and so also make a change of PROMPT impossible.
}
} I wonder if this was intended by the designer of the profile ?
I doubt that the side-effect of preventing the user from customizing his
prompt was intentional.
On Jun 17, 5:20pm, Peter Stephenson wrote:
} Subject: Re: PROMPT
}
} I can hardly believe it.
}
} setopt chaselinks
} PS1='%n@%m:%/'
For completeness:
PS1='%(#..%n@)%m:%/%(#.#.>) '
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1999-06-17 16:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-16 9:27 PROMPT Oliver Grimm
1999-06-16 14:33 ` PROMPT Larry P. Schrof
1999-06-16 15:42 ` PROMPT Bart Schaefer
1999-06-17 15:32 ` PROMPT Oliver Grimm
1999-06-17 15:20 ` PROMPT Peter Stephenson
1999-06-17 16:42 ` Bart Schaefer [this message]
2005-02-24 19:30 prompt Joel David Elkins
2005-02-27 16:47 ` prompt William H. Magill
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=990617164244.ZM5833@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--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).