zsh-syntax-highlighting
Provides Fish shell-like syntax highlighting for zsh, enabling command highlighting as they are typed at the prompt to catch syntax errors before execution.
Description
This package provides syntax highlighting for the zsh shell. 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.
The feature is inspired by the Fish shell, which provides it by default. There are numerous ways to configure the colors used for highlighting, and to configure what is highlighted.
How It Works
The tool integrates with zsh to provide real-time syntax highlighting in interactive terminals. It analyzes commands as they are typed, applying color highlights based on syntax validity and structure, inspired by Fish shell's default behavior. Configuration options allow customization of highlight colors and targeted elements.
Installation
sudo apt install zsh-syntax-highlightingExamples
sudo apt updatels -la /rootgit clone https://github.com/user/repo.gitnmap -sV -p- target.comcurl -X POST http://example.com/api -d 'data=test'python3 -c "print('hello')"