]> git.rmz.io Git - dotfiles.git/blob - zsh/plugins/lighthouse/lighthouse.plugin.zsh
merge oh-my-zsh into subdir
[dotfiles.git] / zsh / plugins / lighthouse / lighthouse.plugin.zsh
1 # To use: add a .lighthouse file into your directory with the URL to the
2 # individual project. For example:
3 # https://rails.lighthouseapp.com/projects/8994
4 # Example usage: http://screencast.com/t/ZDgwNDUwNT
5 open_lighthouse_ticket () {
6 if [ ! -f .lighthouse-url ]; then
7 echo "There is no .lighthouse-url file in the current directory..."
8 return 0;
9 else
10 lighthouse_url=$(cat .lighthouse-url);
11 echo "Opening ticket #$1";
12 `open $lighthouse_url/tickets/$1`;
13 fi
14 }
15
16 alias lho='open_lighthouse_ticket'