summaryrefslogtreecommitdiff
path: root/plugins/lighthouse.plugin.zsh
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2010-06-03 12:03:26 -0700
committerRobby Russell <robby@planetargon.com>2010-06-03 12:03:26 -0700
commit3cf9ab722e7c0829727f548c7d05a0d96055f707 (patch)
tree775b6b98d54bcbdf5158786e4c1c53f3d9494261 /plugins/lighthouse.plugin.zsh
parenteb0f3c0234e88bbbf5ca014ace8d8d801207c222 (diff)
downloadzsh-3cf9ab722e7c0829727f548c7d05a0d96055f707.tar.gz
zsh-3cf9ab722e7c0829727f548c7d05a0d96055f707.tar.bz2
zsh-3cf9ab722e7c0829727f548c7d05a0d96055f707.zip
Initial implementation of a new plugin system, so that people can managed which aliases/functions they want.
Diffstat (limited to 'plugins/lighthouse.plugin.zsh')
-rw-r--r--plugins/lighthouse.plugin.zsh16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/lighthouse.plugin.zsh b/plugins/lighthouse.plugin.zsh
new file mode 100644
index 000000000..4eb06a997
--- /dev/null
+++ b/plugins/lighthouse.plugin.zsh
@@ -0,0 +1,16 @@
+# To use: add a .lighthouse file into your directory with the URL to the
+# individual project. For example:
+# https://rails.lighthouseapp.com/projects/8994
+# Example usage: http://screencast.com/t/ZDgwNDUwNT
+open_lighthouse_ticket () {
+ if [ ! -f .lighthouse-url ]; then
+ echo "There is no .lighthouse file in the current directory..."
+ return 0;
+ else
+ lighthouse_url=$(cat .lighthouse-url);
+ echo "Opening ticket #$1";
+ `open $lighthouse_url/tickets/$1`;
+ fi
+}
+
+alias lho='open_lighthouse_ticket' \ No newline at end of file