conf2/zsh/.oh-my-zsh/plugins/lighthouse/lighthouse.plugin.zsh

13 lines
305 B
Bash
Raw Normal View History

2019-01-12 15:47:23 +00:00
open_lighthouse_ticket () {
if [ ! -f .lighthouse-url ]; then
echo "There is no .lighthouse-url file in the current directory..."
2019-10-24 19:09:05 +00:00
return 0
2019-01-12 15:47:23 +00:00
fi
2019-10-24 19:09:05 +00:00
lighthouse_url=$(cat .lighthouse-url)
echo "Opening ticket #$1"
open_command "$lighthouse_url/tickets/$1"
2019-01-12 15:47:23 +00:00
}
alias lho='open_lighthouse_ticket'