I have an executable script which I want to run every time I log in or open a new interactive shell. I added the path to this executable in .profile
and sourced it by adding this line to .profile
source $HOME/bin/wrapper
After rebooting, this script was not run.
Why is sourcing a script in .profile
not executed by bash even after restarting fedora?
Edit: Made question clearer
~/.bash_profile
which is being evaluated first. – jasonwryan Jul 17 '18 at 18:18/etc/.profile
or~/.profile
? Is the source command executed on the command line or is it a line inside.profile
? – Jul 17 '18 at 18:25