On Mon, 25 Aug 2008 10:32:22 -0500, Robe <[EMAIL PROTECTED]> wrote:
> Hi there,
> I'm trying to change the prompt in the *text (console) mode* for a
> restricted user with a statement like this
> set prompt = "%~> "
> But it doesn't work. And when I type *set* I see _ = "%~> " instead prompt =
> "%~> "
> However when I do it logged as a root it works.
> Can someone help me with this?
Maybe the user where you want to change the prompt has an
overriding setting in ~/.cshrc? You are using the C Shell,
Check the prompt and promptchars variables.
I have this form system wide in /etc/csh.cshrc:
set promptchars = "%#"
set prompt = "[EMAIL PROTECTED]:%~%# "
If a user wants another prompt, the respective setting has
to be set in his ~/.cshrc. This gives you prompts like
[EMAIL PROTECTED]:/usr/src/# _
[EMAIL PROTECTED]:~/my_videos% _
You would then correctly use the form "%~> " for a prompt
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"