diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-09-25 16:41:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 16:41:31 +0200 |
commit | 2c04a0a44745826e15a5f9d941910a1981a51458 (patch) | |
tree | c3fd2211d15465ce09e8f36ae4d34ebb153fb324 | |
parent | bc690e8811a0b3dfdb2bf5db6a39fe34b7be9fb3 (diff) | |
download | irssi.github.io-2c04a0a44745826e15a5f9d941910a1981a51458.zip |
Update index.markdown
remove unnecessary uptime alias
-rw-r--r-- | documentation/tips/index.markdown | 8 |
1 files 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 |