mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Reorganizing plugins so that each plugin has it's own directory now so that any plugin-specific functions can be bundled within there.
This commit is contained in:
parent
7a09175bb4
commit
26d97a9355
13 changed files with 1 additions and 1 deletions
16
plugins/lighthouse/lighthouse.plugin.zsh
Normal file
16
plugins/lighthouse/lighthouse.plugin.zsh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# To use: add a .lighthouse file into your directory with the URL to the
|
||||
# individual project. For example:
|
||||
# https://rails.lighthouseapp.com/projects/8994
|
||||
# Example usage: http://screencast.com/t/ZDgwNDUwNT
|
||||
open_lighthouse_ticket () {
|
||||
if [ ! -f .lighthouse-url ]; then
|
||||
echo "There is no .lighthouse file in the current directory..."
|
||||
return 0;
|
||||
else
|
||||
lighthouse_url=$(cat .lighthouse-url);
|
||||
echo "Opening ticket #$1";
|
||||
`open $lighthouse_url/tickets/$1`;
|
||||
fi
|
||||
}
|
||||
|
||||
alias lho='open_lighthouse_ticket'
|
||||
Loading…
Add table
Add a link
Reference in a new issue