mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Yet another fix of /UPTIME alias - maybe it finally works now :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1957 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
585527b979
commit
806ab849bf
@ -63,7 +63,7 @@ aliases = {
|
||||
GOTO = "sb goto";
|
||||
CHAT = "dcc chat";
|
||||
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 - if which bc &>/dev/null\\; then echo '$*' | bc | awk '{print \"$*=\"$$1}'\\; else echo bc was not found\\; fi";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user