prompt

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

prompt

Just my favorite console prompt. If you like it, use it for your benefit. The installation is very simple:

# Install as a binary
go install prompt.go

# Then edit your ~/.bashrc and set (as an example):
PS1=""
PROMPT_COMMAND="prompt -host $(hostname)"

To see settings, try:

prompt --help

This shows how to include in the prompt:

  • The hostname,
  • Date,
  • Current working directory and git status (if inside a git repository),
  • Etc.

prompt shows its output as colored text, suitable for regular terminals. There is currently no possibility to change the colors.

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