mbostock / gistup

Create a gist from terminal, then use git to update it.
Other
488 stars 41 forks source link

Store defaults in ~/.gistup.json. #7

Open mbostock opened 10 years ago

mbostock commented 10 years ago

Would be nice if you could store default settings in ~/.gistup.json. For example, maybe

{
  "defaults": {
    "private": true
  }
}

would create private gists by default.

tommcdo commented 10 years ago

How about using git config? You can set arbitrary properties in there, e.g.

git config --global gistup.private true

I'm not sure how easy it would be to access from the code, but it's already kind of a standard for configuring git-related things.

mbostock commented 10 years ago

I’m already using .gistup.json to store the GitHub personal access token.

tommcdo commented 10 years ago

Ah, fair enough.

CrandellWS commented 9 years ago

Will rename function gitConfig as part of my own todo list https://github.com/CrandellWS/gistup/blob/70f09c0fc3cc6e3594ee1d23ad0f73d92a1189ed/bin/gistup#L128 ...

CrandellWS commented 9 years ago

https://github.com/CrandellWS/gistup#example-configuration :+1: