|
|
Changing the Terminal Prompt by hoshi Update: Hoshi's article on customizing the command prompt has sparked some additional comments. Paul Woodford adds:
In today's tip, you'll learn how to customize the terminal prompt by adding a couple of special text files. First, make a plain text document called .login in your Home folder (note the file name begins with a dot to make it invisible!). Copy the following text and past it into that document:
Now make another plain text document in your Home folder called .setprompt and paste in the following text (again, note the file name begins with a dot to make it invisible):
Re-login to your computer and run the Terminal app. Now whenever you change directories you will see a new prompt displaying the current directory path. For example, type this in the terminal:
The prompt will now show something like this:
Have fun by experimenting and changing the prompt!
|
|||||||
|
||||||||||||||||||||||||||||||||
Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement.
[an error occurred while processing this directive]