aboutsummaryrefslogtreecommitdiffstats
path: root/.ftjerm/2
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2014-01-06 10:16:16 -0700
committershmibs <shmibs@gmail.com>2014-01-06 10:16:16 -0700
commiteb52ab2616e8e004499333656307d01c45c369ef (patch)
treea704f4c2abbfabb4dd2867cd333db48b3e323811 /.ftjerm/2
downloaddotfiles-eb52ab2616e8e004499333656307d01c45c369ef.tar.gz
initial commit
Diffstat (limited to '.ftjerm/2')
-rw-r--r--.ftjerm/2/commands/connect0
-rw-r--r--.ftjerm/2/commands/search0
-rwxr-xr-x.ftjerm/2/weechat.sh40
3 files changed, 40 insertions, 0 deletions
diff --git a/.ftjerm/2/commands/connect b/.ftjerm/2/commands/connect
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.ftjerm/2/commands/connect
diff --git a/.ftjerm/2/commands/search b/.ftjerm/2/commands/search
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/.ftjerm/2/commands/search
diff --git a/.ftjerm/2/weechat.sh b/.ftjerm/2/weechat.sh
new file mode 100755
index 0000000..3285c6b
--- /dev/null
+++ b/.ftjerm/2/weechat.sh
@@ -0,0 +1,40 @@
+#!/bin/bash
+sleep .125s
+input=""
+cd /home/shmibs/.ftjerm/2/commands
+while IFS="" read -r -e -d $'\n' -p "irc: " -a input; do
+ history -s "$input"
+
+ IFS=" "
+ input=($input)
+ if [ -n "$input" ]; then
+
+ if [ ${input[0]} == "connect" ]; then
+ weechat-curses
+ fi
+
+ if [ ${input[0]} == "logs" ]; then
+ if [ -z ${input[1]} ]; then
+ for i in $( ls /home/shmibs/.weechat/logs ); do
+ echo $i:
+ ls /home/shmibs/.weechat/logs/$i
+ echo
+ done
+ else
+ less "/home/.weechat/logs/${input[1]}.log"
+ fi
+ fi
+
+ if [ ${input[0]} == "clear" ]; then
+ clear
+ fi
+
+ if [ ${input[0]} == "search" ]; then
+ if [ -n ${input[1]} ]; then
+ cd /home/shmibs/.weechat/logs
+ grep --color=always "${input[1]}" ./irc.*${input[2]}* | sed -e 's/.\/irc.\|.weechatlog\|grep: * No such file or directory//g'
+ cd /home/shmibs/.tilda/2/commands
+ fi
+ fi
+ fi
+done