Code Monkey home page Code Monkey logo

Comments (7)

ku1ik avatar ku1ik commented on July 20, 2024

Feel free to send a pull-request then :)

from git-dude.

joshdick avatar joshdick commented on July 20, 2024

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.

ku1ik avatar ku1ik commented on July 20, 2024

We have 2 options then:

  • add osascript support to the code,
  • or document the above example in the readme

from git-dude.

joshdick avatar joshdick commented on July 20, 2024

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.

digitaljhelms avatar digitaljhelms commented on July 20, 2024

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.

joshdick avatar joshdick commented on July 20, 2024

@digitaljhelms Which version of OS X are you using? This has worked fine for me on both Yosemite and El Capitan.

from git-dude.

digitaljhelms avatar digitaljhelms commented on July 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.