Added Zendesk plugin for opening help desk tickets

Modeled after the Lighthouse plugin but without the need for project-specific URLs.
This commit is contained in:
Trabian Developer 2010-11-10 23:24:53 +08:00 committed by Sven Lito
commit 4c105b80dc

View file

@ -0,0 +1,16 @@
# To use: add a .zendesk file into your directory with the URL to the
# individual project. For example:
# https://help.trabian.com/tickets/8994
open_zendesk_ticket () {
if [ ! -f ~/.zendesk-url ]; then
echo "There is no .zendesk file in the home directory..."
return 0;
else
zendesk_url=$(cat ~/.zendesk-url);
echo "Opening ticket #$1";
`open $zendesk_url/tickets/$1`;
fi
}
alias zo='open_zendesk_ticket'
alias ticket='open_zendesk_ticket'