Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Mac Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Mac Support Apple Operating Systems and Application Support on Macs

Reply
 
LinkBack Thread Tools
Old 01-16-2006, 02:55 PM   #1 (permalink)
Registered User
 
Join Date: Jan 2006
Posts: 5
OS: Win XP, Fedora Core 4, OSX.4


Unix setup, set prompt

Im trying to customize my OSX Terminal a little and change the prompt, however its not letting me change it with all the articals i found on google. so far i've tried to create a file in Users/Username called .tcshrc and .cshrc with a line in it like "set prompt="$dir#"" and its not working so far. Has anyone gotten this to change or know the file and directory which i need to edit to get the prompt.

Im running 10.4.4
clogan1981 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 01-17-2006, 12:18 AM   #2 (permalink)
Mac Method Wiz -- Manager
 
sinclair_tm's Avatar
 
Join Date: Mar 2005
Location: Dusty Mexican Border Lands
Posts: 9,628
OS: MS Win XP Pro SP3 & Mac OS X 10.5.8

My System

Blog Entries: 24
Send a message via AIM to sinclair_tm Send a message via MSN to sinclair_tm
ya, i've done it. got my info from the book "learning unix of mac os x tiger" by dave taylor. great book for an intro to unix. this is what he says on the subject, and what i did:
Quote:
Use the vi editor to create a file called .profile in your home directory (/Users/yourname), and then add the following to the end of the file: export PS1="$ ".
i found this file was in my home folder allready, so i just added
Quote:
export PS1="\w \$ "
to the end of it so that it only showed the working dir. because i'm nice, here are most of what you can do with the prompt.
Quote:
\w the current working directory
\W the trailing element of the current working directory, with ~ substitution
\! the current command history number
\H the full hostname
\h the hostname up to the first dot
\@ time of day in 12-hour
\A time of day in 24-hour
\u the username
\$ a# if the effective user id is zero (root), or a $ otherwise
and if you just enter text between the double quotes ( ie "text here") then it will display that text.
hope this is helpful.
__________________
.






Quote:
it's human nature to stand in line...
-my brother
sinclair_tm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-19-2006, 11:10 PM   #3 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 988
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

The reason .tcshrc and .cshrc do not work for you is Mac OS X 10.3 and later use bash as the default shell. Those configuration files you created will work with the tcsh shell (the default on previous versions of Mac OS X). bash has other configuration files, but you probably will only need to use .profile (at least until you get farther into shell configuration).

You will set up your shell prompt with PS1, like sinclair's post shows.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 01-24-2006, 06:47 PM   #4 (permalink)
I helped the forums.
 
pat13nce's Avatar
 
Join Date: Jan 2006
Location: Eastern Pennsylvania
Posts: 18
OS: Mac OS X, Win2000P


Send a message via AIM to pat13nce Send a message via Yahoo to pat13nce
I just started reading.

Mac OS X Tiger Edition
"A Practical Guide to UNIX for Mac OS X Users"
By: Mark G. Sobell & Peter Seeback

I was getting tired of the tech guys playing the fun roll with me. Talking Darwin this and ls that.

I am only on chapter 3 and I realize alot more then I even thought of before.

The simplest thing as naming of files can be a real pain once you jump into the terminal world.

I have our whole network working with alpha, number, "_", amd "-" for naming of files. NOTHING ELSE...

So amny people on the same server sharing files with naming with"•" and "*" just to get it to go to the top.

OMG I am just so glad it wasn't me naming files like that.

IT almost went through the roof when they looked at the files.
pat13nce is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 10:46 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85