LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices

Reply
 
Search this Thread
Old 03-13-2007, 04:52 PM   #1
Grife
Member
 
Registered: Oct 2006
Location: Finland
Distribution: openSUSE
Posts: 89

Rep: Reputation: 15
Bash aliases in OS X??


Uh oh, this is frustrating and I can't figure out how to do it. I'm trying to alias ls='ls -F' for bash, but I can't find .bash_aliases in home directory like in Linux. I tried touching it and editing it in nano but no go. I tried looking for info from almighty google with lame results, none.

Do someone know how to make a permament alias file for bash? Really frustrating to write it every time when starting a new session.
 
Old 03-13-2007, 04:59 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

In your homedir (terminals opens in it) create a .profile (mind the leading dot), put your stuff in there.

I'm a proud owner of a Mac Pro since a few days and this solution works for me.
Also take a look at bash's manpage under the INVOCATION part.

Hope this helps.
 
Old 03-13-2007, 05:48 PM   #3
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Your .bash_aliases file in Ubuntu is probably sourced by the the .profile script. You could do the same on your Mac provided it uses the bash shell.
 
Old 03-14-2007, 06:26 AM   #4
Grife
Member
 
Registered: Oct 2006
Location: Finland
Distribution: openSUSE
Posts: 89

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by druuna
Hi,

In your homedir (terminals opens in it) create a .profile (mind the leading dot), put your stuff in there.

I'm a proud owner of a Mac Pro since a few days and this solution works for me.
Also take a look at bash's manpage under the INVOCATION part.

Hope this helps.
Thank you!
 
  


Reply


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
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
How to export stuff and add aliases in bash MalachiX Linux - Newbie 2 03-21-2005 06:33 PM
Bash aliases won't autostart? Ollir Mandriva 7 08-22-2004 02:10 PM
See aliases gubak Linux - Newbie 0 08-04-2004 06:13 AM
Make Screen respect bash aliases VxJasonxV Linux - Software 8 02-05-2004 03:00 AM


All times are GMT -5. The time now is 01:55 AM.

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