]> git.mjollnir.org Git - dotfiles/lbdbq.git/commitdiff
initial commit
authorPenny Leach <penny@mjollnir.org>
Fri, 30 Apr 2010 14:46:36 +0000 (16:46 +0200)
committerPenny Leach <penny@mjollnir.org>
Fri, 30 Apr 2010 14:46:36 +0000 (16:46 +0200)
.lbdb/lbdbrc [new file with mode: 0644]
.lbdb/modules/m_google [new file with mode: 0644]

diff --git a/.lbdb/lbdbrc b/.lbdb/lbdbrc
new file mode 100644 (file)
index 0000000..7c6555f
--- /dev/null
@@ -0,0 +1,3 @@
+METHODS="m_abook m_ldap m_google"
+MODULES_PATH="$MODULES_PATH $HOME/.lbdb/modules"
+
diff --git a/.lbdb/modules/m_google b/.lbdb/modules/m_google
new file mode 100644 (file)
index 0000000..253e982
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/bash -posix
+
+m_google_query () {
+    goobook query "$@" | grep -v '^$' | sed -e 's/$/\tgoogle/'
+}