.bash-profile中的命令不起作用
问题描述:
我在Mac Leopard的主目录中的.bash_profile文件中添加了一个别名。例如,.bash-profile中的命令不起作用
alias preview = "open -a preview"
alias lsall = "ls -l"
当我尝试运行命令行这些命令,我得到command not found
任何想法,我可能会做错误的信息?谢谢!
答
你只需要减肥周围=
的空间,即
alias preview="open -a preview"
alias lsall="ls -l"
你还需要,如果你想让它当你开始一个新的shell自动执行文件命名为.bash_profile
。
属于http://superuser.com – 2010-11-15 18:49:40
对不起!会去那里看看那里属于什么。 – Curious2learn 2010-11-16 02:10:18