osx - commands in .bash-profile do not work -


i added alias in .bash_profile file in home directory on mac leopard. example,

alias preview = "open -a preview" alias lsall = "ls -l" 

when try run these commands command line, message command not found

any idea might doing wrong? thanks!

you need lose spaces around =, i.e.

alias preview="open -a preview" alias lsall="ls -l" 

you need name file .bash_profile if want executed automatically when start new shell.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -