Categorygithub.com/bayashi/highlightrepo
modulepackage
0.0.2
Repository: https://github.com/bayashi/highlightrepo.git
Documentation: pkg.go.dev

# README

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

# Functions

No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author