I have some scripts (that are out of my control) that loads some environment settings to my session. So whenever I want to load I have to execute a series of commands:
export SOME_VAR=/path/to/main/folder
source $SOME_VAR/loading/stuff.sh --quiet
loadApp1
loadApp2
loadApp3
loadApp4
I want to do this with a single command, so I created a function (pretty much the lines above), but it doesn't work.
I think it isit's because the loadApps are aliases, loaded in the stuff.sh so at time bashBash parses my functions it doesn't know the aliases yet.
How could I do this with a single command without lose portabiblitylosing portability? PS
PS: I do not want oto copy the alias to my bashrc$HOME/.bashrc because they can be changechanged elsewhere and I won't see it.