{"id":13567459,"url":"https://github.com/weakish/viconf","last_synced_at":"2026-05-14T19:02:01.871Z","repository":{"id":16055945,"uuid":"18800088","full_name":"weakish/viconf","owner":"weakish","description":"visudo for all commands","archived":false,"fork":false,"pushed_at":"2019-11-23T18:33:41.000Z","size":29,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T05:28:18.740Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weakish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-15T12:59:52.000Z","updated_at":"2023-06-29T04:09:14.000Z","dependencies_parsed_at":"2022-08-30T23:41:13.096Z","dependency_job_id":null,"html_url":"https://github.com/weakish/viconf","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/weakish/viconf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fviconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fviconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fviconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fviconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weakish","download_url":"https://codeload.github.com/weakish/viconf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weakish%2Fviconf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33039250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T13:02:32.003Z","updated_at":"2026-05-14T19:02:01.851Z","avatar_url":"https://github.com/weakish.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"About\n-----\n\n`viconf` solves the following problems for me:\n\n- I cannot remembered where programs put their config file.\n- I am too lazy to `man command` to look up config file location.\n- I often make typos when editing config files.\n\nDepends\n--------\n\n`viconf-syncdb`, which updates meta config file,\na.k.a. a map of commands and config file paths,\ndepends on the following programs:\n\n- `curl`\n- `git`\n- `jq`\n\n`viconf` itself dose not depend on any special programs.\n\n\nUsage\n-----\n\nRun:\n\n    viconf command [template_file]\n\nThen `viconf` will open the config file for this command, and you can edit it.\nAnd `viconf` will try to check the syntax before saving the file.\n\nIf the config file is absent,\nand a second command line argument pointing to a file is provided,\nthat file will be used as the template.\n\nOccasionally, run `viconf-syncdb` to update meta config file.\n\nAn experimental `viconf-commit` will commit changes to config file:\n\n```sh\nviconf-commit command\n```\n\nIt will copy the config file of *command* to a git repository\ncontaining config files, specified by environment variable `CONFIG_REPO`,\n(default value: `~/lib`).\nThen it will bring you to write a git commit message,\na.k.a. invoke git as:\n\n```sh\ngit commit --verbose --gpg-sign \"$command_config\"\n```\n\nThe commit command can be customized via an environment variable\n`VICONF_COMMITTER`.\n\nFor example, silently commit without gpg sign:\n\n```sh\nexport VICONF_COMMITTER=\"git commit --allow-empty-message -m ''\"\n```\n\nviconf also supports [chezmoi].\nIf chezmoi is found in `PATH`, viconf will invoke chezmoi to edit and apply changes,\nand viconf-commit also invokes chezmoi (it will **stage and commit all changes** in chezmoi repo).\n\n[chezmoi]: https://github.com/twpayne/chezmoi/\n\nInstall\n--------\n\n### With basher\n\n```sh\n; basher install weakish/viconf\n; viconf-syncdb\n```\n\nRequire [basher][] version: `\u003e=39875bc`.\n\n[basher]: https://github.com/basherpm/basher\n\n### With `make`\n\n```sh\n; git clone https://github.com/weakish/viconf\n; cd viconf\n; make\n```\nIf you do not want to install to `/usr/local/bin`, just change `config.mk`.\n\nThe `Makefile` is compatible with both GNU make and BSD make.\n\nUninstall\n---------\n\nIf installed with `basher`, run:\n\n```sh\n; basher uninstall weakish/viconf\n```\n\nIf installed with `make`, run:\n\n```sh\n; cd viconf\n; make uninstall\n```\n\nContribute\n-----------\n\nhttps://github.com/weakish/viconf\n\nLicense\n--------\n\n0BSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fviconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweakish%2Fviconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweakish%2Fviconf/lists"}