highlightrepo

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 14 Imported by: 0

README

highlightrepo

highlightrepo CI highlightrepo report card

highlightrepo provides a filter to highlight repository directory in a path string.

Usage

$ pwd | highlightrepo

Used cyan to highlight. If you want to set another color, then add --color option.

$ pwd | highlightrepo --color="red"

Here's color palette.

For PS1

Use -y option in PS1 to bypass the check for non-tty output streams

PS1="[\u@\h \$(pwd | highlightrepo -y)]\n\$ "

Installation

Mac
brew tap bayashi/tap
brew install bayashi/tap/highlightrepo
Binary install

Download binary from here: https://github.com/bayashi/highlightrepo/releases

Go manual

If you have golang environment:

go install github.com/bayashi/highlightrepo@latest

License

MIT License

Author

Dai Okabayashi: https://github.com/bayashi

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL