I have an urgent issue here. After I modify the bash_profile, many command like vim,cp,open...can not found anymore. How could I fix my bash_profile? Thank you. I am using macOS.
I add a new PATH to bash_profile, after source it, almost all commands disappeared. I guess it is because I add the new PATH at very beginning of the bash_profile. And I didn't save the original bash_profile.
The error after source is following:
yuminsun$ source ~/.bash_profile
-bash: export: `Creator.app/Contents/MacOS/Qt': not a valid identifier
-bash: export: `Creator:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/anaconda/bin:/opt/local/bin:/opt/local/sbin:/Users/yuminsun/.rvm/gems/ruby-2.4.2/bin:/Users/yuminsun/.rvm/gems/ruby-2.4.2@global/bin:/Users/yuminsun/.rvm/rubies/ruby-2.4.2/bin:/Users/yuminsun/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin:/Users/yuminsun/.rvm/bin': not a valid identifier
-bash: uname: command not found
-bash: ps: command not found
-bash: uname: command not found
-bash: ps: command not found
-bash: uname: command not found
-bash: ps: command not found