{"id":13587331,"url":"https://github.com/agkozak/zhooks","last_synced_at":"2025-04-30T04:33:02.795Z","repository":{"id":109653288,"uuid":"133995118","full_name":"agkozak/zhooks","owner":"agkozak","description":"Display Zsh hook functions and arrays","archived":false,"fork":false,"pushed_at":"2023-12-26T18:00:29.000Z","size":1671,"stargazers_count":55,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-06T06:40:41.453Z","etag":null,"topics":["hooks","zsh","zsh-configuration","zsh-plugin"],"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/agkozak.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}},"created_at":"2018-05-18T19:18:47.000Z","updated_at":"2024-11-05T10:29:51.000Z","dependencies_parsed_at":"2023-07-29T11:00:29.545Z","dependency_job_id":null,"html_url":"https://github.com/agkozak/zhooks","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/agkozak%2Fzhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkozak%2Fzhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkozak%2Fzhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agkozak%2Fzhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agkozak","download_url":"https://codeload.github.com/agkozak/zhooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224197917,"owners_count":17271999,"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":["hooks","zsh","zsh-configuration","zsh-plugin"],"created_at":"2024-08-01T15:06:09.715Z","updated_at":"2024-11-12T01:09:36.990Z","avatar_url":"https://github.com/agkozak.png","language":"Shell","funding_links":[],"categories":["Plugins","Shell"],"sub_categories":["ZSH on Windows","Zinit (née zplugin)"],"readme":"# zhooks\n\n[![MIT License](img/mit_license.svg)](https://opensource.org/licenses/MIT)\n![GitHub Stars](https://img.shields.io/github/stars/agkozak/zhooks.svg)\n\n`zhooks` is a tool for displaying the code for all Zsh hook functions (such as `precmd`), as well as the contents of hook arrays (such as `precmd_functions`). It is useful in debugging conflicts between interactive scripts.\n\n![zhooks](img/demo.gif)\n\n## Installation:\n\nSimply source `zhooks` from your `.zshrc`:\n\n    source /path/to/zhooks.plugin.zsh\n\nor load it using your favorite Zsh plugin manager or framework. Then run the command `zhooks` from the command line to see a thorough report.\n\n`zhooks` returns true when hooks are being used and false when they are not.\n\n## Zsh Hooks Functions and Hook Arrays\n\nZsh has the hook functions:\n\n* `chpwd`\n* `periodic`\n* `precmd`\n* `preexec`\n* `zshaddhistory`\n* `zsh_directory_name`\n* `zshexit`\n\nThe corresponding arrays have `_functions` appended to their names:\n\n* `chpwd_functions`\n* `periodic_functions`\n* `precmd_functions`\n* `preexec_functions`\n* `zshaddhistory_functions`\n* `zsh_directory_name_functions`\n* `zshexit_functions`\n\n\u003cp align=center\u003e\n    \u003cimg src=\"img/mascot.png\" alt=\"zhooks Mascot\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagkozak%2Fzhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagkozak%2Fzhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagkozak%2Fzhooks/lists"}