image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old October 1st, 2009, 06:53 AM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
TraciC is on a distinguished road
Red face .bashrc help please

Hi,
Sorry for asking what is sure to be a stupidly easy question... what have I done wrong that makes my MacBook Pro (snow leopard) not recognize the aliases I've tried to add to my .bashrc file? They're super simple:

alias ll="ls -l"
alias la="ls -a"

I need to solve this problem before working on my rsync shell script. Thanks for your help!

-Traci
Reply With Quote
  #2  
Old October 1st, 2009, 07:48 AM
macbri's Avatar
Mac (r)evolution
 
Join Date: Jun 2005
Location: One of these days, Alice....
Posts: 299
Thanks: 3
Thanked 3 Times in 3 Posts
macbri has a spectacular aura aboutmacbri has a spectacular aura about
Lightbulb

Here's my setup (don't know when I set this up, but it works)

Check that you have a .bash_profile and it contains:

Code:
if [ -e ~/.bashrc ]; then
    source ~/.bashrc
fi
__________________
Tech Blog
Reply With Quote
The Following User Says Thank You to macbri For This Useful Post:
TraciC (October 1st, 2009)
  #3  
Old October 1st, 2009, 09:30 AM
ElDiabloConCaca's Avatar
Registered User
 
Join Date: Aug 2001
Location: San Antonio, Texas
Posts: 12,672
Thanks: 7
Thanked 388 Times in 370 Posts
ElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of lightElDiabloConCaca is a glorious beacon of light
Also, if I'm not mistaken (and it could very well work both ways), but in bash, enclosing a command should be done with single-quote characters (not double-quote), like so:

Code:
alias ll='ls -laFG'
...although I just tested it with double-quotes and it seems to work ok as well.

Just throwin' that out there...
__________________
Mac mini 2.0GHz 10.6.2 • 4GB • 320GB • Superdrive • 4 x 1TB USB 2.0 • LED Cinema Display
MacBook 2.0GHz Core 2 Duo - White 10.6.2 • 4GB • 250GB • CD-RW/DVD-ROM
iPhone 3G 8GB • iPod Touch 8GB • iPod Photo 60GB • iPod nano 1GB • AT&T U-Verse 18Mb/2Mb
http://www.jeffhoppe.com
Reply With Quote
The Following User Says Thank You to ElDiabloConCaca For This Useful Post:
TraciC (October 1st, 2009)
  #4  
Old October 1st, 2009, 10:03 AM
Registered User
 
Join Date: Aug 2003
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
TraciC is on a distinguished road
Thanks a lot guys. Believe it or not, wasn't in the bash shell, so have fixed THAT and now things work. God what a newbie.
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 Off
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:48 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.