Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

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

Open
mbostock opened this issue Mar 2, 2014 · 5 comments
Open

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

mbostock opened this issue Mar 2, 2014 · 5 comments

Comments

@mbostock
Copy link
Owner

mbostock commented Mar 2, 2014

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
Copy link

tommcdo commented Mar 12, 2014

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
Copy link
Owner Author

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

@tommcdo
Copy link

tommcdo commented Mar 12, 2014

Ah, fair enough.

@CrandellWS
Copy link

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

@CrandellWS
Copy link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants