1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

added /CALC alias

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1691 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2001-07-30 20:08:34 +00:00 committed by cras
parent 6acc71e9a2
commit cc87b4d12e

View File

@ -64,4 +64,5 @@ aliases = {
CHAT = "dcc chat"; CHAT = "dcc chat";
RUN = "SCRIPT LOAD"; RUN = "SCRIPT LOAD";
UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'"; UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'";
CALC = "exec - echo -n '$* = ' && echo 'scale = 3\; $*'|bc";
}; };