{ "info": { "author": "Daniel Alm Grundstr\u00f6m", "author_email": "daniel.alm.grundstrom@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Topic :: System :: Installation/Setup", "Topic :: System :: Systems Administration", "Topic :: Utilities" ], "description": "# dotedit\nOpens the configuration file (dotfile) for a given program. \n\n#### Contents\n1. [Usage](#usage)\n * [Hooks](#hooks)\n2. [Install](#install)\n * [Bash](#bash)\n * [Zsh](#zsh)\n * [fish](#fish)\n\n## Usage\n\nOpen configuration file for conky:\n\n```bash\n$ dotedit c # <-- Tab-completion for bash, zsh & fish!\n$ dotedit conky\n# opens ~/.config/conky/conky.conf in $EDITOR\n```\n\nIf dotedit does not know the path to the dotfile for a program, it will try to find it in `$XDG_CONFIG_HOME` or `$HOME`. It will always prompt before adding a path to avoid opening the wrong file:\n\n```bash\n$ dotedit bspwm\nAdd path to bspwm: ~/.config/bspwm/bspwmrc # <-- Tab-completion works here too!\n#opens ~/.config/bspwm/bspwmrc in $EDITOR\n```\n\ndotedit will, of course, save the path for next time:\n\n```bash\n$ dotedit bspwm\n#opens ~/.config/bspwm/bspwmrc in $EDITOR\n```\n\nIf you mistype...\n\n```bash\n$ dotedit xinit\nAdd path to xinit: ~/.xinitcr # <-- Doh!\n```\n\n...you can update the path...\n\n```bash\n$ dotedit --update xinit\nUpdate path to xinit: ~/.xinitcr\nUpdate path to xinit: ~/.xinit\nUpdate path to xinit: ~/.xinitrc\n```\n\n...or just remove it:\n\n```bash\n$ dotedit --remove xinit\n```\n\n### Hooks\nYou can add pre and post hooks by creating the files\n`$XDG_CONFIG_HOME/dotedit/hooks/pre-edit` and \n`$XDG_CONFIG_HOME/dotedit/hooks/postedit` and making them executable.\n\nFor example to automatically commit and push changes to dotfiles in a git\ndirectory you can create post edit hook with the following content:\n\n```bash\n#!/bin/sh\n\ncd \"$HOME/git/dotfiles/\" | return\ngit add -A . && git commit -m 'update' && git pull --rebase && git push\n```\n\n## Install\n\n```bash\n$ pip3 install --user dotedit\n```\n\n### Completions\nTo enable completions, the completion scripts need to be installed manually. \n\n#### Bash\n```bash\n$ dotedit --completions bash > ~/.local/share/bash-completion/completions/dotedit\n```\n\n#### Zsh\n\n```zsh\n$ dotedit --completions zsh > ~/.zfunc/_dotedit\n```\n\n#### fish\n\n```fish\n$ dotedit --completions fish > ~/.config/fish/completions/dotedit.fish\n```\n\nFinally, restart your shell session or source the completion script to enable completions.\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/almgru/dotedit", "keywords": "dotfiles,config,dotedit", "license": "MIT", "maintainer": "Daniel Alm Grundstr\u00f6m", "maintainer_email": "daniel.alm.grundstrom@protonmail.com", "name": "dotedit", "package_url": "https://pypi.org/project/dotedit/", "platform": "", "project_url": "https://pypi.org/project/dotedit/", "project_urls": { "Homepage": "https://github.com/almgru/dotedit", "Repository": "https://github.com/almgru/dotedit" }, "release_url": "https://pypi.org/project/dotedit/1.2.0/", "requires_dist": null, "requires_python": ">=3.0,<4.0", "summary": "Edit dotfiles easily", "version": "1.2.0" }, "last_serial": 4441772, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "1614c00161d63f5151b63e19d4783a63", "sha256": "5dee183a0d26e1f322923e86805926e70c4f4faafd7fde39d77f84695694c984" }, "downloads": -1, "filename": "dotedit-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1614c00161d63f5151b63e19d4783a63", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0,<4.0", "size": 13532, "upload_time": "2018-10-22T23:23:02", "url": "https://files.pythonhosted.org/packages/fc/ff/cc1b7bbc87762150f8068236604e286a4a7e9088a32e7b847aa30688d0d8/dotedit-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d293e1ac4797c10b46065d17b17d57a2", "sha256": "32a1563645344f75de748001abacb007937cec33b772c6fefa4b9ae373e2832d" }, "downloads": -1, "filename": "dotedit-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d293e1ac4797c10b46065d17b17d57a2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0,<4.0", "size": 5479, "upload_time": "2018-10-22T23:23:03", "url": "https://files.pythonhosted.org/packages/1a/07/482bce414b14392f278e06967f2282435272c807df49920184e6814e81c1/dotedit-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "9b762472ca26409ffac605db13dc2eaf", "sha256": "1f8706a94511c296f45adb685c2e339be7c8f728b092a13b68d1727ada8d8e95" }, "downloads": -1, "filename": "dotedit-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "9b762472ca26409ffac605db13dc2eaf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0,<4.0", "size": 14122, "upload_time": "2018-10-31T16:49:22", "url": "https://files.pythonhosted.org/packages/92/60/d57d8e6ed3ed811e009d6d284ef974fa47fbdae5be78bbd97d766f5946e1/dotedit-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f187746ba8ef9da2f3612d9228875341", "sha256": "eb1b727e1a79003bbb5663cc165ad786690376d9cdf47dfdcb89e82b2e6712c9" }, "downloads": -1, "filename": "dotedit-1.1.0.tar.gz", "has_sig": false, "md5_digest": "f187746ba8ef9da2f3612d9228875341", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0,<4.0", "size": 5824, "upload_time": "2018-10-31T16:49:23", "url": "https://files.pythonhosted.org/packages/7a/2a/61b5499a8190c57015892f86c14a088fde9590a55c7767843e0f8f87a41f/dotedit-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "4035ed34d3e8449883179f82a6932510", "sha256": "124cd3d4e57ceeaabc1f4d27a34c1076dc10bf7f698a7d6c638a89b33f1fdc39" }, "downloads": -1, "filename": "dotedit-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4035ed34d3e8449883179f82a6932510", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0,<4.0", "size": 14718, "upload_time": "2018-11-01T18:47:13", "url": "https://files.pythonhosted.org/packages/29/25/e24b743d1bdde17f1fec31d95f0a44271267fe302c2d80e16d755277b94f/dotedit-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e2c8b2c131d7ef6ec5a47e9c428c2f4", "sha256": "6c85b665a4496538d6a1c2b2cd8135643b6a4cf7491321b9ec020cd34a369ad1" }, "downloads": -1, "filename": "dotedit-1.2.0.tar.gz", "has_sig": false, "md5_digest": "7e2c8b2c131d7ef6ec5a47e9c428c2f4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0,<4.0", "size": 5942, "upload_time": "2018-11-01T18:47:14", "url": "https://files.pythonhosted.org/packages/e2/81/ed512a2c699deb1151414223db37a7fef74609a0ff4b0f461a2ec4f23051/dotedit-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4035ed34d3e8449883179f82a6932510", "sha256": "124cd3d4e57ceeaabc1f4d27a34c1076dc10bf7f698a7d6c638a89b33f1fdc39" }, "downloads": -1, "filename": "dotedit-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4035ed34d3e8449883179f82a6932510", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.0,<4.0", "size": 14718, "upload_time": "2018-11-01T18:47:13", "url": "https://files.pythonhosted.org/packages/29/25/e24b743d1bdde17f1fec31d95f0a44271267fe302c2d80e16d755277b94f/dotedit-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e2c8b2c131d7ef6ec5a47e9c428c2f4", "sha256": "6c85b665a4496538d6a1c2b2cd8135643b6a4cf7491321b9ec020cd34a369ad1" }, "downloads": -1, "filename": "dotedit-1.2.0.tar.gz", "has_sig": false, "md5_digest": "7e2c8b2c131d7ef6ec5a47e9c428c2f4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.0,<4.0", "size": 5942, "upload_time": "2018-11-01T18:47:14", "url": "https://files.pythonhosted.org/packages/e2/81/ed512a2c699deb1151414223db37a7fef74609a0ff4b0f461a2ec4f23051/dotedit-1.2.0.tar.gz" } ] }