From 2c04a0a44745826e15a5f9d941910a1981a51458 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Mon, 25 Sep 2017 16:41:31 +0200 Subject: Update index.markdown remove unnecessary uptime alias --- documentation/tips/index.markdown | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/documentation/tips/index.markdown b/documentation/tips/index.markdown index 6923678..cfd3a20 100644 --- a/documentation/tips/index.markdown +++ b/documentation/tips/index.markdown @@ -44,11 +44,13 @@ Audible bell (switch Ctrl+a Ctrl+g) /format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1 /format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2 -### uptime alias +### uptime -put it in your .irssi/config in the alias section as one line: +type -``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 + +to view irssi's uptime ### ssh/telnet alias -- cgit v1.2.3