Chaque fois que je ferme et ouvre Terminal.app, il ne charge jamais mon fichier ~ / .bash_profile. Ma configuration RVM se trouve en haut du fichier mais ne le charge jamais.
Comme vous pouvez le constater, lorsque je tape rvm
dans Terminal, cela signifie que command not found
c’est pénible car je dois courir à source ~/.bash_login
chaque fois que j’ouvre Terminal.
Suis-je le seul à avoir ce problème? Qu'est-ce que je fais mal?
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.
Et que le paramètre / usr / bin / login est explicite ...
source ~/.bash_login
" Lequel est-ce? Utilisez-vous ~ / .bash_profile ou ~ / .bash_login? Un seul d'entre eux sera exécuté.