Bash alias: command not found

后端 未结 6 786
抹茶落季
抹茶落季 2021-01-04 04:47

I\'m trying to setup a simple alias to move me into my Developer folder on my machine. However, after setting it up, I get a weird error:

-bash: dv: command          


        
6条回答
  •  被撕碎了的回忆
    2021-01-04 04:55

    .bashrc is only read on startup. If you just modified your .bashrc then you need to get a new shell or get your current shell to see the changes applied:

    • source ~/.bashrc in your current shell (although this may cause some startup items to run twice, which could cause other issues)
    • exec bash to get a new shell
    • just open a new Terminal window

提交回复
热议问题