Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I tried to make an alias to edit my bash profile, but when I save and relaunch a new window, I get the following:

Last login: Sun Jul 22 12:00:25 on ttys001
-bash: alias: nano ~/.bash_profile: not found
Adams-MacBook-Pro:~ adam$

### manually reopen a new terminal

Adams-MacBook-Pro:~ adam$ ebp
Adams-MacBook-Pro:~ adam$  

My .bash_profile looks like :

# edit bash profile
alias ebp= 'nano ~/.bash_profile'
# alias rbp= 'source .bash_profile'

Also fwiw, my other aliases work fine. Any ideas on what i'm doing wrong?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Remove the space between ebp= and 'nano ~/.bash_profile' and the alias will work.

share|improve this answer
    
doh!... thanks!! –  SkinnyG33k Jul 22 '12 at 20:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.