e4189b9a963a323b5e4e2a5a440e69a01f18479f
- Author
- Marc Cornellà <marc.cornella@live.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
Clean up lighthouse plugin
Diff
1diff --git a/plugins/lighthouse/lighthouse.plugin.zsh b/plugins/lighthouse/lighthouse.plugin.zsh
2index 4a47b60109cfdecedafbc10d4251033dd193c5a3..3fca2bf4f8fa9ed4a7b8b6925f8218a8eb0f5b74 100644
3--- a/plugins/lighthouse/lighthouse.plugin.zsh
4+++ b/plugins/lighthouse/lighthouse.plugin.zsh
5@@ -1,16 +1,12 @@
6-# To use: add a .lighthouse file into your directory with the URL to the
7-# individual project. For example:
8-# https://rails.lighthouseapp.com/projects/8994
9-# Example usage: https://screencast.com/t/ZDgwNDUwNT
10 open_lighthouse_ticket () {
11 if [ ! -f .lighthouse-url ]; then
12 echo "There is no .lighthouse-url file in the current directory..."
13- return 0;
14- else
15- lighthouse_url=$(cat .lighthouse-url);
16- echo "Opening ticket #$1";
17- open_command "$lighthouse_url/tickets/$1";
18+ return 0
19 fi
20+
21+ lighthouse_url=$(cat .lighthouse-url)
22+ echo "Opening ticket #$1"
23+ open_command "$lighthouse_url/tickets/$1"
24 }
25
26 alias lho='open_lighthouse_ticket'