lighthouse.plugin.zsh 529 B

12345678910111213141516
  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_command "$lighthouse_url/tickets/$1";
  13. fi
  14. }
  15. alias lho='open_lighthouse_ticket'