Sometimes, Bash configuration has to be modified (the most common use-case being adding of PATH). While it is possible to do it by editing profile and/or bashrc, it is not recommended as these files could be replaced in the process of upgrading software.
Some Linux distros provide a way to add scripts to be run during the startup of a shell session without having to edit these files.
This is by adding .sh files into /etc/profile.d
No comments:
Post a Comment