Simple Aliases & Identifiers - 31/05/03 06:03 AM
I was going through my Aliases.ini which has been accumulating entries since around 97, when I realized how many useful yet simple aliases I have that I use almost every day.
Besides the usual mode/op/kick type aliases, who would like to share something from their toybox? It could be something useful, something fun, or something so elegantly simple that it's a must for everyone's Aliases section.
/i { if ( $1 isnum ) { set %_i $1 | return %_i } | inc %_i | return %_i }
This one is handy for quickly incrimenting things at the command line.
Simply /i 0 to reset it to 0, and each call to $i returns a value and incriments it.
/math echo 2 -a *** MATH: $1- = $calc($1-)
/math 1+1 = simple enough, but I use it every day.
/baton set -u60 %BATON.i $calc(%BATON.i % 4 + 1) | return $gettok(/ - \ |,%BATON.i,32)
I often use this in long processes, like $findfile. Fun/Oldskool value.
/editbox -a $baton Processing... %file
Share yours.
Besides the usual mode/op/kick type aliases, who would like to share something from their toybox? It could be something useful, something fun, or something so elegantly simple that it's a must for everyone's Aliases section.
/i { if ( $1 isnum ) { set %_i $1 | return %_i } | inc %_i | return %_i }
This one is handy for quickly incrimenting things at the command line.
Simply /i 0 to reset it to 0, and each call to $i returns a value and incriments it.
/math echo 2 -a *** MATH: $1- = $calc($1-)
/math 1+1 = simple enough, but I use it every day.
/baton set -u60 %BATON.i $calc(%BATON.i % 4 + 1) | return $gettok(/ - \ |,%BATON.i,32)
I often use this in long processes, like $findfile. Fun/Oldskool value.
/editbox -a $baton Processing... %file
Share yours.