Documentation ¶
Index ¶
- Variables
- func Set(name string)
- type Shell
- func (s Shell) First(fg, bg color.Color) string
- func (s Shell) Full(ps []pieces.Piece) string
- func (s Shell) Last(fg color.Color, carrot string) string
- func (s Shell) Prompt(statuses []string)
- func (s Shell) Simple(ps []pieces.Piece) string
- func (s Shell) Switch(bg, nextBG, nextFG color.Color, carrot string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Bash = Shell{"\001", "\002"} Zsh = Shell{"%{", "%}"} )
Shell Definitions
Functions ¶
Types ¶
type Shell ¶
Shell contains the shell-specific escape sequences for marking escape sequences in prompts
var Current Shell
Current is the most recently set Shell
func (Shell) Prompt ¶
Prompt writes the configured Prompt to os.Stdout with the specified shell's formatting
Click to show internal directories.
Click to hide internal directories.