{"id":20162579,"url":"https://github.com/zdharma-continuum/zinit-annex-patch-dl","last_synced_at":"2025-04-10T00:36:02.724Z","repository":{"id":40589801,"uuid":"423393529","full_name":"zdharma-continuum/zinit-annex-patch-dl","owner":"zdharma-continuum","description":"Unmaintained mirror of zinit-zsh/z-a-patch-dl","archived":false,"fork":false,"pushed_at":"2025-02-15T15:31:38.000Z","size":120,"stargazers_count":3,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T02:21:54.648Z","etag":null,"topics":["zinit","zinit-annex","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdharma-continuum.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-11-01T08:39:57.000Z","updated_at":"2025-02-15T15:31:42.000Z","dependencies_parsed_at":"2023-12-04T11:42:57.813Z","dependency_job_id":null,"html_url":"https://github.com/zdharma-continuum/zinit-annex-patch-dl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-annex-patch-dl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-annex-patch-dl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-annex-patch-dl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzinit-annex-patch-dl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdharma-continuum","download_url":"https://codeload.github.com/zdharma-continuum/zinit-annex-patch-dl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749958,"owners_count":20989714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["zinit","zinit-annex","zsh"],"created_at":"2024-11-14T00:25:50.351Z","updated_at":"2025-04-10T00:36:02.704Z","avatar_url":"https://github.com/zdharma-continuum.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# zinit-annex-patch-dl\n\nA Zinit extension (i.e., an [annex](https://zdharma-continuum.github.io/zinit/wiki/Annexes/)) that downloads files and\napplies patches. It adds two ice modifiers:\n\n```zsh\nzinit ice dl'{URL} [-\u003e {optional-output-file-name}]; …' …\n```\n\nand\n\n```zsh\nzinit ice patch'{file-name-with-the-patch-to-apply}; …' …\n```\n\nThe Zinit annex (i.e., an extension) will:\n\n- Download the given `{URL}` under the path `{optional-output-file-name}` (if no file name is given, then it is taken\n  from the last segment of the URL) in case of the `dl''` ice-mod,\n- Apply a patch given by the `{file-name-with-the-patch-to-apply}` in case of the `patch''` ice-mod.\n\nYou can use this functionality to download and apply patches. For example, to install `fbterm`, two patches are being\nneeded, one to fix the operation, the other one to fix the build:\n\n```zsh\nzinit ice \\\n    as\"command\" \\\n    atclone\"./configure --prefix=$ZPFX\" \\\n    atpull\"%atclone\" \\\n    dl\"https://aur.archlinux.org/cgit/aur.git/plain/0001-Fix-build-with-gcc-6.patch?h=fbterm-git\" \\\n    dl\"https://bugs.archlinux.org/task/46860?getfile=13513 -\u003e ins.patch\" \\\n    make\"install\" \\\n    patch\"ins.patch; 0001-Fix-build-with-gcc-6.patch\" \\\n    pick\"$ZPFX/bin/fbterm\" \\\n    reset\n\nzinit load izmntuk/fbterm\n```\n\nThis command will result in:\n\n![fbterm example](https://raw.githubusercontent.com/zdharma-continuum/zinit-annex-patch-dl/master/images/fbterm-ex.png)\n\n## Installation\n\nRun the following command to add the annex to Zinit:\n\n```zsh\nzinit light zdharma-continuum/zinit-annex-patch-dl\n```\n\nAfter executing this command, you can use the `dl''` and `patch''` ice-mods.\n\n\u003c!-- vim:set ft=markdown tw=120 et sw=4 sts=4: --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzinit-annex-patch-dl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdharma-continuum%2Fzinit-annex-patch-dl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzinit-annex-patch-dl/lists"}