Actions
On LOAD » History » Revision 5
« Previous |
Revision 5/8
(diff)
| Next »
Per Amundsen, 11/14/2015 06:29 AM
Added in 1.8.10
on <level>:LOAD:<commands>
Triggers the first time a script file is loaded.
See also /load, /unload, on START, on UNLOAD.
Parameters
<level> - The level for the event to trigger.
<commands> - The commands to be performed when the event listener's criteria is met.
Example
; Create a init alias.
alias -l initscript {
; Set the %loaded variable to 'on'
set %loaded on
}
; Listen for the LOAD event, and when matched, run this initscript alias.
on *:LOAD:initscript | echo -ag Script is $iif(%loaded,loaded,not loaded)
Updated by Per Amundsen almost 10 years ago · 8 revisions