Wenn ich Terminal.app schließe und öffne, wird mein ~ / .bash_profile nie geladen. Ich habe mein RVM-Setup oben in der Datei, aber es wird nie geladen.
Wie Sie sehen können, bedeutet das bei der Eingabe rvm
in Terminal, dass command not found
dies ein Schmerz ist, da ich source ~/.bash_login
jedes Mal laufen muss, wenn ich Terminal öffne.
Bin ich der einzige mit diesem Problem? Was mache ich falsch?
When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
source ~/.bash_login
" Was ist das? Verwenden Sie ~ / .bash_profile oder ~ / .bash_login? Nur einer von ihnen wird ausgeführt.