Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Directory ¶
type Directory struct { Path string DisplayPath string //formatted for display in prompt line TitlePath string //formatted for display in TerminalTitle InBuildTree bool InRepoTree bool Repo *gitRepo NearestAccessiblePath string }
Directory contains all data about a directory that the prompt needs.
func CurrentDirectory ¶
func CurrentDirectory() Directory
CurrentDirectory prepares a Directory struct for the current working directory.
func NewDirectory ¶
NewDirectory prepares a Directory struct for the given path.
type TerminalTitle ¶
TerminalTitle contains all pieces that go into the terminal title.
func (TerminalTitle) PrintTo ¶
func (t TerminalTitle) PrintTo(stdout io.Writer)
PrintTo produces the VT command that sets the terminal title.
Click to show internal directories.
Click to hide internal directories.