![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Modifying a variable value | kartikkumar84@g | UNIX for Dummies Questions & Answers | 6 | 05-22-2008 11:19 PM |
| can someone help me with modifying this file | eamani_sun | Shell Programming and Scripting | 2 | 05-22-2008 10:15 AM |
| modifying my shell | nico-hellas | Shell Programming and Scripting | 1 | 08-05-2005 06:43 AM |
| modifying the writing of a log... | Nicol | Shell Programming and Scripting | 2 | 04-13-2005 07:05 AM |
| Modifying Route | hoang | IP Networking | 1 | 06-25-2002 04:55 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help in modifying the prompt
Hi,
I want to change the login prompt from $ to something more explanatory like (Username)(basename of pwd): I also need to get this in a different font color. Can someone pls tell me what I have to modify in my rc file. I m using CShell currently. Would be great if u can give me the generic logic and how to do it in diff shells like Csh, TCsh, Ksh, Bash,sh shells. Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
This command would set the default directory to the current dir.
Place this command in your . profile file. export PS1=`uname -n`'@$PWD > ' I am not sure of how the text colour can be changed ....... |
|
#3
|
|||
|
|||
|
Thanks for the reply.
Would u know what to do for CSH also. I tried set prompt='${LOGNAME}:${CWD}' But when I change the directory, the working directory displayed in the prompt does not change. Also the color. I m very particular abt that |
|
#5
|
|||
|
|||
|
Hmm, I cannot see anything mentioned in that link wrt color!
|
|
#7
|
|||
|
|||
|
Wow! That was a good site. Thanks.
Would u know some sites for CSh (colors) also. Hope u r not already irritated! |
|||
| Google The UNIX and Linux Forums |