save alias commands to file and load at session start

Feb 19, 2019
5
0
hi,
Been searching how to do this for a while, with no luck, so posted here.
Need to collect all my alias commands in 1 file, and load them when I start vDosPlus session. How do I do that?

Thanks for any help
David
 
May 20, 2008
10,511
77
Syracuse, NY, USA
There's also SHRALIAS; read about it. SHRALIAS will "guard" any global lists it finds (alias, history, dirhistory, function) so that they continue to exist even when no TCCs are running. New TCCs that use global lists will simply find them ... no need to load anything. When SHRALIAS teminates (as it does on logoff and shutdown) it will save any lists to files in a directory specified by the environment variable SHRALIAS_SAVE_PATH.

I'm a big fan of SHRALIAS. I have a login script which loads the saved files and starts SHRALIAS ... I never think about it again.