All Projects → zsh-users → Zsh Syntax Highlighting

zsh-users / Zsh Syntax Highlighting

Licence: bsd-3-clause
Fish shell like syntax highlighting for Zsh.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Zsh Syntax Highlighting

colorstorm
A color theme generator for editors and terminal emulators
Stars: ✭ 101 (-99.24%)
Mutual labels:  syntax-highlighting, screenshot
History Search Multi Word
Multi-word, syntax highlighted history searching for Zsh
Stars: ✭ 314 (-97.63%)
Mutual labels:  zsh, syntax-highlighting
Zsh Syntax Highlighting Filetypes
zsh syntax highlighting with dircolors in realtime
Stars: ✭ 130 (-99.02%)
Mutual labels:  zsh, syntax-highlighting
Shelby
Shelby is a fast ⚡️ , lightweight ☁️ , minimal✨, shell prompt written in Go.
Stars: ✭ 148 (-98.88%)
Mutual labels:  zsh
Geshi 1.0
Original version of Generic Syntax Highlighter for PHP
Stars: ✭ 149 (-98.88%)
Mutual labels:  syntax-highlighting
Serpscrap
SEO python scraper to extract data from major searchengine result pages. Extract data like url, title, snippet, richsnippet and the type from searchresults for given keywords. Detect Ads or make automated screenshots. You can also fetch text content of urls provided in searchresults or by your own. It's usefull for SEO and business related research tasks.
Stars: ✭ 153 (-98.84%)
Mutual labels:  screenshot
Gh
Easily manage your local git repos
Stars: ✭ 156 (-98.82%)
Mutual labels:  zsh
Terraform.tmlanguage
Terraform (HCL) configuration file syntax highlighting for Sublime Text 2 and 3
Stars: ✭ 148 (-98.88%)
Mutual labels:  syntax-highlighting
Promptless
🚀 A super fast and extremely minimal shell prompt.
Stars: ✭ 155 (-98.83%)
Mutual labels:  zsh
Kshare
The free and open source and cross platform screen sharing software.
Stars: ✭ 151 (-98.86%)
Mutual labels:  screenshot
Cover Image Generator
📕 Generate a cover image for your blog post 📝 https://blogcover.now.sh/
Stars: ✭ 152 (-98.85%)
Mutual labels:  screenshot
Zsh Prompt Garrett
A prompt with the information you need the moment you need it.
Stars: ✭ 150 (-98.87%)
Mutual labels:  zsh
Tmoe Linux
🍭Without any basic knowledge of linux shell,you can easily install and configure a GNU/Linux graphical desktop environment on 📱Android termux and 💻WSL .🍰You can also run VSCode on your android phone.🍹Graphical qemu manager,🐋support running docker on Android.配置WSL和安卓手机的linux容器,桌面环境,主题美化,远程桌面,音频服务,镜像源,uefi开机启动项,webdav(nginx),fcitx输入法以及qemu-system虚拟机...
Stars: ✭ 149 (-98.88%)
Mutual labels:  zsh
Wsl Config
CS 4400 - Step by step guide for using WSL and Vim as a development environment
Stars: ✭ 148 (-98.88%)
Mutual labels:  zsh
Glsl
VSIX Project that provides GLSL language integration.
Stars: ✭ 155 (-98.83%)
Mutual labels:  syntax-highlighting
Dotfiles
~ 🍭 ~
Stars: ✭ 147 (-98.89%)
Mutual labels:  zsh
Myazo
Self-hosted, cross-platform Gyazo alternative
Stars: ✭ 154 (-98.84%)
Mutual labels:  screenshot
Dotfiles
📍 My dotfiles for macOS using Fish/Zsh, Neovim, and Tmux
Stars: ✭ 151 (-98.86%)
Mutual labels:  zsh
Jupyter themes
A plugin to select syntax highlighting on Jupyter
Stars: ✭ 151 (-98.86%)
Mutual labels:  syntax-highlighting
Zsh Theme
Yet another zsh theme
Stars: ✭ 153 (-98.84%)
Mutual labels:  zsh

zsh-syntax-highlighting Build Status

Fish shell-like syntax highlighting for Zsh.

Requirements: zsh 4.3.11+.

This package provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.

Some examples:

Before: Screenshot #1.1
After:  Screenshot #1.2

Before: Screenshot #2.1
After:  Screenshot #2.2

Before: Screenshot #3.1
After:  Screenshot #3.2

Before: Screenshot #4.1
After:  Screenshot #4.2

How to install

See INSTALL.md.

FAQ

Why must zsh-syntax-highlighting.zsh be sourced at the end of the .zshrc file?

zsh-syntax-highlighting works by hooking into the Zsh Line Editor (ZLE) and computing syntax highlighting for the command-line buffer as it stands at the time z-sy-h's hook is invoked.

In zsh 5.2 and older, zsh-syntax-highlighting.zsh hooks into ZLE by wrapping ZLE widgets. It must be sourced after all custom widgets have been created (i.e., after all zle -N calls and after running compinit) in order to be able to wrap all of them. Widgets created after z-sy-h is sourced will work, but will not update the syntax highlighting.

In zsh newer than 5.8 (not including 5.8 itself), zsh-syntax-highlighting uses the add-zle-hook-widget facility to install a zle-line-pre-redraw hook. Hooks are run in order of registration, therefore, z-sy-h must be sourced (and register its hook) after anything else that adds hooks that modify the command-line buffer.

Does syntax highlighting work during incremental history search?

Highlighting the command line during an incremental history search (by default bound to to Ctrl+R in zsh's emacs keymap) requires zsh 5.4 or newer.

Under zsh versions older than 5.4, the zsh-default underlining of the matched portion of the buffer remains available, but zsh-syntax-highlighting's additional highlighting is unavailable. (Those versions of zsh do not provide enough information to allow computing the highlighting correctly.)

See issues #288 and #415 for details.

How are new releases announced?

There is currently no "push" announcements channel. However, the following alternatives exist:

How to tweak

Syntax highlighting is done by pluggable highlighter scripts. See the documentation on highlighters for details and configuration settings.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].