| ... | ... |
@@ -58,3 +58,20 @@ function tm() {
|
| 58 | 58 |
cd $1 |
| 59 | 59 |
mate $1 |
| 60 | 60 |
} |
| 61 |
+ |
|
| 62 |
+# To use: add a .lighthouse file into your directory with the URL to the |
|
| 63 |
+# individual project. For example: |
|
| 64 |
+# https://rails.lighthouseapp.com/projects/8994 |
|
| 65 |
+# Example usage: http://screencast.com/t/ZDgwNDUwNT |
|
| 66 |
+open_lighthouse_ticket () {
|
|
| 67 |
+ if [ ! -f .lighthouse-url ]; then |
|
| 68 |
+ echo "There is no .lighthouse file in the current directory..." |
|
| 69 |
+ return 0; |
|
| 70 |
+ else |
|
| 71 |
+ lighthouse_url=$(cat .lighthouse-url); |
|
| 72 |
+ echo "Opening ticket #$1"; |
|
| 73 |
+ `open $lighthouse_url/tickets/$1`; |
|
| 74 |
+ fi |
|
| 75 |
+} |
|
| 76 |
+ |
|
| 77 |
+alias lho='open_lighthouse_ticket' |