Sometimes I install a new version of Dyalog and I have to re-set my ]Box and ]Rows settings.
]box on -fns=on
]rows on -fns=on -fold=3
I know I can set these and then save the session file, but I can't simply copy my old session file for use with a new version of Dyalog. It's not a lot of effort but would be one less thing to think about if I could set it in one place and forget about it.
Edit: Reflect feedback from Adám's comment below.
One approach is to create a Run
function under a subdirectory of ⎕SE.Dyalog.StartupSession.VerAgno
, e.g. in .../StartupSession/rc/Run.aplf
∇Run
⎕SE.UCMD'←Box on -fns=on'
⎕SE.UCMD'←Rows on -fns=on -fold=3'
∇
where the ←
characters suppress output.
Another approach, with caveats listed in Adám's comment below, is to set the LOAD
variable to Run.aplf
, i.e. your dyalog.dcfg
would look something like this:
{ settings: {
LOAD: "Run.aplf",
...
}}
and place Run.aplf
in the same directory as your dyalog.dcfg
.
If setup correctly, then when you start your session, you will see a message telling you that the script loaded: Loaded: #.RC from "path/to/your/RC.aplf"
. Granted, this approach is somewhat brute force and will cause problems if your script accumulates any version-specific code.