{"id":18654509,"url":"https://github.com/z-shell/zsh-util-lib","last_synced_at":"2026-03-13T10:32:19.598Z","repository":{"id":103554408,"uuid":"425835853","full_name":"z-shell/zsh-util-lib","owner":"z-shell","description":"A utility library for Z shell that provides a few general-purpose functions. It's a counterpart to the zsh-string-lib library","archived":false,"fork":false,"pushed_at":"2023-01-14T11:33:53.000Z","size":9,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T17:23:36.018Z","etag":null,"topics":["string-library","zsh"],"latest_commit_sha":null,"homepage":"https://wiki.zshell.dev","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/z-shell.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-08T12:51:19.000Z","updated_at":"2023-01-14T11:27:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"74a7e5b8-e2af-455a-ab7a-16da816f0715","html_url":"https://github.com/z-shell/zsh-util-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/z-shell/zsh-util-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-shell%2Fzsh-util-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-shell%2Fzsh-util-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-shell%2Fzsh-util-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-shell%2Fzsh-util-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z-shell","download_url":"https://codeload.github.com/z-shell/zsh-util-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z-shell%2Fzsh-util-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30465422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["string-library","zsh"],"created_at":"2024-11-07T07:15:36.771Z","updated_at":"2026-03-13T10:32:19.579Z","avatar_url":"https://github.com/z-shell.png","language":"Shell","readme":"# Zsh Util lib\n\n\n- [Introduction](#introduction)\n  - [List Of The Functions](#list-of-the-functions)\n    - [@util-bind-all](#util-bind-all)\n\n## Introduction\n\nAn utility-library for Zshell that provides a few general-purpose functions.\nIt's a counterpart to the\n[zsh-string-lib](https://github.com/z-shell/zsh-string-lib) library.\n\n## List Of The Functions\n\n### @util-bind-all\n\nRebinds all key bindings so that they're executing some custom code. It's an\nalternative to overloading of all Zle widgets.\n\nArguments:\n\n1. The custom snippet of code to run before executing the original widget.\n2. A bool (`1`,`yes`,`true`,`on` for truth or other value for false) indicating\n   whether the widget calls should be automatically forwarded to their original\n   (before-binding) versions.\n3. (Optional) Custom snippet of code to be executed **after** executing the\n   original widget.\n4. (Optional) A method of the binding – either `bindkey` (the default) or\n   `zle-N`. The first one is fully bindkey based, i.e.: e.g.: it doesn't create\n   the backup widgets that are typically prefixed with \"orig–\". The second is\n   half-bindkey / half-zle -N based - it does create the backup widgets, however\n   the widgets are obtained using `bindkey` listing invocation, which means that\n   typically only a half of all widgets are bound.\n\nExample:\n\n```zsh\n@util-bind-all 'print hello!' yes 'print hello after!'\n```\n\n\u003c!-- vim:set ft=markdown tw=80 fo+=an1 autoindent: --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-shell%2Fzsh-util-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz-shell%2Fzsh-util-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz-shell%2Fzsh-util-lib/lists"}