Comments (7)
Feel free to send a pull-request then :)
from git-dude.
FWIW, I was able to accomplish this via the following (no external packages):
git config --global dude.notify-command 'osascript -e "display notification \"$DESCRIPTION\" with title \"$TITLE\""'
from git-dude.
We have 2 options then:
- add osascript support to the code,
- or document the above example in the readme
from git-dude.
I believe the osascript
support for notifications was added in OS X Mavericks. terminal-notifier
or Growl would still be necessary for earlier versions of OS X.
from git-dude.
Using git config
per @joshdick didn't work for me, not sure what's up, getting a "Service exited with abnormal code" in the logs when I run this as a LaunchAgent daemon...
from git-dude.
@digitaljhelms Which version of OS X are you using? This has worked fine for me on both Yosemite and El Capitan.
from git-dude.
@joshdick El Capitan (10.11.1)
Command line failure: 732:742: syntax error: A identifier canβt go after this β"β. (-2740)
I walked through a few repos symlinked in ~/.git-dude
and ran git dude
manually until I found the repo causing the error. While, I don't know the specific commit that's the culprit, I can speculate it has something to do with a double quote in the description or title that, if not escaped before being passed to the osascript
command, causes the error... Perhaps working an escaping solution into the notify command (something like http://stackoverflow.com/a/23923108) would resolve this.
from git-dude.
Related Issues (20)
- Selective monitoring of git commits HOT 3
- KDE integration HOT 3
- Handle forced push properly HOT 4
- Running as a daemon (OS X) HOT 13
- npm package HOT 4
- Auto Merge config HOT 5
- duplicate notification at every interval HOT 9
- Using existing cloned repository HOT 4
- Fails handling fetch results other than new branch/tag/commit HOT 6
- Github links HOT 2
- asks for password at every interval HOT 4
- Remove need for Github's username and password HOT 6
- Decide on a license HOT 3
- Issue and other activity notifications HOT 1
- Breaks with parenthesis in the repo name HOT 2
- Running as daemon through cron (Ubuntu 15.10) HOT 5
- Not displaying notifications. HOT 2
- need to specify .git-dude dir HOT 3
- notifier for debian ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-dude.