{"id":13396180,"url":"https://github.com/zsh-users/zsh-syntax-highlighting","last_synced_at":"2025-05-12T22:35:18.300Z","repository":{"id":1258620,"uuid":"1197428","full_name":"zsh-users/zsh-syntax-highlighting","owner":"zsh-users","description":"Fish shell like syntax highlighting for Zsh.","archived":false,"fork":false,"pushed_at":"2024-11-21T15:11:08.000Z","size":1565,"stargazers_count":21040,"open_issues_count":195,"forks_count":1339,"subscribers_count":136,"default_branch":"master","last_synced_at":"2025-04-28T10:19:21.302Z","etag":null,"topics":["screenshot","shell","syntax-highlighting","zsh","zsh-syntax-highlighting"],"latest_commit_sha":null,"homepage":"github.com/zsh-users/zsh-syntax-highlighting","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zsh-users.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"COPYING.md","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}},"created_at":"2010-12-25T17:28:55.000Z","updated_at":"2025-04-28T09:48:39.000Z","dependencies_parsed_at":"2023-07-06T13:46:20.353Z","dependency_job_id":"f8db885c-26ad-431c-b081-6146fffd016f","html_url":"https://github.com/zsh-users/zsh-syntax-highlighting","commit_stats":{"total_commits":1237,"total_committers":77,"mean_commits":"16.064935064935064","dds":0.576394502829426,"last_synced_commit":"e0165eaa730dd0fa321a6a6de74f092fe87630b0"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh-users%2Fzsh-syntax-highlighting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh-users%2Fzsh-syntax-highlighting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh-users%2Fzsh-syntax-highlighting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zsh-users%2Fzsh-syntax-highlighting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zsh-users","download_url":"https://codeload.github.com/zsh-users/zsh-syntax-highlighting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531861,"owners_count":21763290,"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":["screenshot","shell","syntax-highlighting","zsh","zsh-syntax-highlighting"],"created_at":"2024-07-30T18:00:41.928Z","updated_at":"2025-05-05T16:14:16.647Z","avatar_url":"https://github.com/zsh-users.png","language":"Shell","funding_links":[],"categories":["Shell","Zsh plugin","Plugins","shell","Dependencies","zsh","终端","Shells","Programming Languages","Arch Linux","Computer Networking and Security","🐧 Linux","编辑器和 Terminal","Oh My Zsh",":computer: Terminal","Terminal","Programming Applications","Command Line"],"sub_categories":["Packages","ZSH on Windows","Needed","网络服务_其他","Zinit (née zplugin)","ZSH","Shell","Configurações adicionais","shell","zsh 插件","React","CLI Tools"],"readme":"zsh-syntax-highlighting [![Build Status][build-status-image]][build-status]\n=======================\n\n**[Fish shell][fish]-like syntax highlighting for [Zsh][zsh].**\n\n*Requirements: zsh 4.3.11+.*\n\n[fish]: https://fishshell.com/\n[zsh]: https://www.zsh.org/\n\nThis package provides syntax highlighting for the shell zsh.  It enables\nhighlighting of commands whilst they are typed at a zsh prompt into an\ninteractive terminal.  This helps in reviewing commands before running\nthem, particularly in catching syntax errors.\n\nSome examples:\n\nBefore: [![Screenshot #1.1](images/before1-smaller.png)](images/before1.png)\n\u003cbr/\u003e\nAfter:\u0026nbsp; [![Screenshot #1.2](images/after1-smaller.png)](images/after1.png)\n\nBefore: [![Screenshot #2.1](images/before2-smaller.png)](images/before2.png)\n\u003cbr/\u003e\nAfter:\u0026nbsp; [![Screenshot #2.2](images/after2-smaller.png)](images/after2.png)\n\nBefore: [![Screenshot #3.1](images/before3-smaller.png)](images/before3.png)\n\u003cbr/\u003e\nAfter:\u0026nbsp; [![Screenshot #3.2](images/after3-smaller.png)](images/after3.png)\n\nBefore: [![Screenshot #4.1](images/before4-smaller.png)](images/before4-smaller.png)\n\u003cbr/\u003e\nAfter:\u0026nbsp; [![Screenshot #4.2](images/after4-smaller.png)](images/after4-smaller.png)\n\n\n\nHow to install\n--------------\n\nSee [INSTALL.md](INSTALL.md).\n\n\nFAQ\n---\n\n### Why must `zsh-syntax-highlighting.zsh` be sourced at the end of the `.zshrc` file?\n\nzsh-syntax-highlighting works by hooking into the Zsh Line Editor (ZLE) and\ncomputing syntax highlighting for the command-line buffer as it stands at the\ntime z-sy-h's hook is invoked.\n\nIn zsh 5.2 and older,\n`zsh-syntax-highlighting.zsh` hooks into ZLE by wrapping ZLE widgets.  It must\nbe sourced after all custom widgets have been created (i.e., after all `zle -N`\ncalls and after running `compinit`) in order to be able to wrap all of them.\nWidgets created after z-sy-h is sourced will work, but will not update the\nsyntax highlighting.\n\nIn zsh newer than 5.8 (not including 5.8 itself),\nzsh-syntax-highlighting uses the `add-zle-hook-widget` facility to install\na `zle-line-pre-redraw` hook.  Hooks are run in order of registration,\ntherefore, z-sy-h must be sourced (and register its hook) after anything else\nthat adds hooks that modify the command-line buffer.\n\n### Does syntax highlighting work during incremental history search?\n\nHighlighting the command line during an incremental history search (by default bound to\nto \u003ckbd\u003eCtrl+R\u003c/kbd\u003e in zsh's emacs keymap) requires zsh 5.4 or newer.\n\nUnder zsh versions older than 5.4, the zsh-default [underlining][zshzle-Character-Highlighting]\nof the matched portion of the buffer remains available, but zsh-syntax-highlighting's\nadditional highlighting is unavailable.  (Those versions of zsh do not provide\nenough information to allow computing the highlighting correctly.)\n\nSee issues [#288][i288] and [#415][i415] for details.\n\n[zshzle-Character-Highlighting]: https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html#Character-Highlighting\n[i288]: https://github.com/zsh-users/zsh-syntax-highlighting/pull/288\n[i415]: https://github.com/zsh-users/zsh-syntax-highlighting/pull/415\n\n### How are new releases announced?\n\nThere is currently no \"push\" announcements channel.  However, the following\nalternatives exist:\n\n- GitHub's RSS feed of releases: https://github.com/zsh-users/zsh-syntax-highlighting/releases.atom\n- An anitya entry: https://release-monitoring.org/project/7552/\n\n\nHow to tweak\n------------\n\nSyntax highlighting is done by pluggable highlighter scripts.  See the\n[documentation on highlighters](docs/highlighters.md) for details and\nconfiguration settings.\n\n[build-status]: https://github.com/zsh-users/zsh-syntax-highlighting/actions\n[build-status-image]: https://github.com/zsh-users/zsh-syntax-highlighting/workflows/Tests/badge.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsh-users%2Fzsh-syntax-highlighting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzsh-users%2Fzsh-syntax-highlighting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzsh-users%2Fzsh-syntax-highlighting/lists"}