lighthouse.plugin.zsh 305 Bytes
Newer Older
1
2
open_lighthouse_ticket () {
  if [ ! -f .lighthouse-url ]; then
3
    echo "There is no .lighthouse-url file in the current directory..."
Marc Cornellà's avatar
Marc Cornellà committed
4
    return 0
5
  fi
Marc Cornellà's avatar
Marc Cornellà committed
6
7
8
9

  lighthouse_url=$(cat .lighthouse-url)
  echo "Opening ticket #$1"
  open_command "$lighthouse_url/tickets/$1"
10
11
}

12
alias lho='open_lighthouse_ticket'