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
Post a Comment