image
image

Go Back   macosx.com > Scripts > Shell/Terminal Scripts

Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2009, 10:34 AM
Registered User
 
Join Date: Mar 2008
Posts: 33
Thanks: 1
Thanked 0 Times in 0 Posts
nemac is on a distinguished road
Question on "Terminal"

I have Linux experience and I am trying to find out what is the name of the file that executes when you start up a "Terminal" session to set your profile. I would like to set several "aliases" automatically whenever I start a terminal session. I know there has to be a way of doing this but I don't have a lot of experience with the Mac to know how to do this on my own. I would appreciate any help you all can give me.

Thanks in advance,

Javier
Reply With Quote
  #2  
Old August 29th, 2009, 02:28 PM
Registered User
 
Join Date: Jul 2005
Posts: 897
Thanks: 0
Thanked 5 Times in 5 Posts
simbalala is on a distinguished road
I think what you're looking for is ~/.bash_profile

which is the same as...

/Users/yourusername/.bash_profile

Now, this is true for OSX 10.4 which uses bash. I think 10.5 and up may use a different shell, someone will step in and let us know if that's the case.

Regardless of the shell there should be a corresponding “profile” file for the shell in your user directory.
Reply With Quote
Reply

Bookmarks

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

Forum Jump


All times are GMT -5. The time now is 09:23 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.