0
我在Mac Leopard的主目錄中的.bash_profile文件中添加了一個別名。例如,.bash-profile中的命令不起作用
alias preview = "open -a preview"
alias lsall = "ls -l"
當我嘗試運行命令行這些命令,我得到command not found
任何想法,我可能會做錯誤的信息?謝謝!
我在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