Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-12-2001, 08:47 PM   #1
LQ Newbie
Registered: Oct 2001
Location: Vancouver, BC
Distribution: RH 7.1 w kernel 2.4.12 & Mandrake 8.1
Posts: 6

Rep: Reputation: 0
How to set tcsh prompt: # for root and % for user?

Hi all,

I'm configuring my linux box. I'll use both bash and tcsh.

The command " set prompt='%#' " in /etc/csh.cshrc sets tcsh prompt to be ">" for user and "#" for root. I REALLY prefer a traditional "%" for user but don't know how to do that.

Anyone here please give me a hand?

I also wanted the bash prompt to be $ for a normal user and # for root. This was done with " PS1='\$' " in /etc/bashrc
Old 10-12-2003, 03:13 PM   #2
Registered: Feb 2003
Location: huntsville, al
Distribution: debian, opensolaris
Posts: 99

Rep: Reputation: 15
put the following in your .tcshrc file:

set promptchars="%#"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IRAF prompt cl - how do I set up key bindings? keflavich Linux - Software 1 12-18-2009 08:11 AM
root login shell tcsh does not allow "su" CooManChu Linux - Security 2 12-24-2004 02:23 PM
tcsh prompt with colors TroelsSmit Linux - Newbie 2 12-20-2004 07:55 AM
Unable to logon on as non-root user after update as unable to set executable context pls198 Fedora 2 04-09-2004 11:41 AM
how set system time by command prompt? yenonn Linux - Newbie 9 08-25-2003 06:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration