bash: ~/.bash_profile: No such file or directory

前端 未结 4 1974
南旧
南旧 2021-02-20 11:27

I keep getting this error:

bash: ~/.bash_profile: No such file or directory

Here is my bash_profile:

alias ngrok=/Users/mmahalw         


        
4条回答
  •  灰色年华
    2021-02-20 12:19

    In my case I was receiving the following error.

    -bash: /Users/mac241/.rvm/scripts/rvm: No such file or directory
    -bash: /Users/mac241/.rvm/scripts/rvm: No such file or directory
    

    After few checks, I got to know when I created .bash_profile file, below two commands already was prewritten on the file.

    source /Users/mac241/.rvm/scripts/rvm
    source /Users/mac241/.rvm/scripts/rvm  
    

    based on error, I got to know this are the problems and after I removed, It started working. Hope you are written and defined those commands only which you required to auto run up on shell start.

提交回复
热议问题