I know writing
source ~/.bashrc
shopt -s expand_aliases
in a bash script allows to use aliases defined in .bashrc file.
However, I have so many bash scripts, and I cannot change all those scripts.
Is there a way to let my aliases used in all my scripts, with setting env or something?
.bashrcto add something which should only actually be done when a new interactive shell is started.sudo -ishould always be used instead ofsudo. Somesudocommands might kill the node. So I had to force it to prevent mistakes because not only I am using the servers./usr/local/bin/sudowith a wrapper to override and dispatch/usr/bin/sudowith this option. For example.