bat-extras
A set of Bash scripts that connect the bat file viewer with grep, man, diff and less.
These buttons open the developer's own site, repository or store listing in a new tab. wares.gg does not host downloads.
1 more ways to get bat-extras
Package managers
- Homebrew
brew install bat-extras
About bat-extras
bat-extras adds syntax highlighting from bat to other everyday terminal tasks. batgrep searches files with ripgrep and shows highlighted results, batman renders man pages through bat, batdiff shows a file's changes against the Git index or between two files, and batwatch reprints files when they change.
batpipe is a less preprocessor for viewing more file types in the terminal, and prettybat formats and highlights source code. The scripts are packaged for Homebrew, MacPorts, Arch Linux and Gentoo, and Homebrew users can install individual scripts.
Strengths
- Highlighted man pages, grep results and diffs
- Packaged for Homebrew, MacPorts, Arch and Gentoo
- Scripts can be installed individually
Limitations
- Requires bat, and some scripts need ripgrep, entr or delta
- Updates are infrequent
Details
- Pricing
- FreeFree and open source under the MIT licence.
- License
- MIT
- Developer
- eth-p
- Platforms
- macOS, Linux, Command line
- How it runs
- Downloadable app
- Account
- Not required
- Works offline
- Yes
- Best suited for
- People who already use bat and want its highlighting in more terminal tools
- Categories
- CLI tools, Developer tools
- Last verified
- Added
- Provenance
- Facts checked against the developer's own pages and store listings, 2 sources on file.
Similar software
Related functionality, not necessarily a direct replacement.
bat
Like cat, but with syntax highlighting, line numbers, Git markers and a pager when the file is long.
delta
A pager that makes git diffs readable: syntax highlighting, word-level changes, side-by-side view and line numbers.
ripgrep
Searches a whole directory tree for a pattern in a fraction of the time grep takes, and skips what gitignore says to skip.
entr
Runs a command whenever the files you pipe into it change.
less
A classic terminal file pager for reading text files and command output one screen at a time.
ov
Read long command output with a configurable terminal pager.