I would like to be able to specify a file for setting some environment variables, but make it so that it does not depend on the shell used.
for instance
%: source START.env
if [ $SHELL == "bash" ]; then
source START.env.bash
else
source START.env.tcsh
fi
However, this code will only work for bash. How can I make it compatible with bash and tcsh?
I need to transfer the file because I want environment variables to be inserted afterwards.
source
share