Skip to content

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

License

Notifications You must be signed in to change notification settings

bayashi/highlightrepo

Repository files navigation

highlightrepo

highlightrepo CI highlightrepo report card Go Reference: highlightrepo

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

Usage

$ pwd | highlightrepo

Used cyan to highlight by default. If you want to change, 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 \$(pwd | highlightrepo -y)\n\$ "

PS1 example

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages