.bash_profile aliases: command not found

后端 未结 1 395
陌清茗
陌清茗 2021-01-11 11:37

I cannot get my .bash_profile aliases to work on my Mac OSX Terminal. I created a .bash_profile file in my ~/ directory, then wrote two lines:

echo bash prof         


        
相关标签:
1条回答
  • 2021-01-11 12:31

    Let's ask shellcheck!

    In .bash_profile line 2:
    alias prof=“open ~/.bash_profile”
               ^-- SC1015: This is a unicode double quote. Delete and retype it.
    

    There's your problem. OS X has turned your double quotes into fancy slanted quotes that bash doesn't recognize. If you're programming, you may want to disable "smart quotes".

    0 讨论(0)
提交回复
热议问题