On 2020/03/23 12:53:01 +0100, Axel Braun wrote:
Hi,
I used to write some alias into /etc/bash.bashrc.local :
%pre #Write environment changes to /etc/bash.bashrc.local cat > /etc/bash.bashrc.local << "EOF" alias cdutil='cd /usr/bin' #(and some more...) EOF
Now I was advised to use /etc/profile.d instead. This directory contains a bunch of non-executable files ending on sh, .csh, .ssh etc.
So how is the procedure? create a new file myaddons.sh, write the above stuff into it and it gets processed/pulled-in automatically?
Add your myaddons.sh and if possible (that is test it out in tcsh!!!) a myaddons.csh with your alias to the file list of your package. /etc/bash.bashrc.local is the the local admin only to avoid changes on the main part /etc/bash.bashrc as this will be overwritten with next update -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr