config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPS1Name     string = "default"
	DefaultPS1Value    string = `[\u@\h \W] 🎮 $ `
	DefaultPS1FileName string = ".psone.yaml"
)

Functions

func AddPS1

func AddPS1(PS1Name string, PS1Value string)

AddPS1 add a new PS1 to your list.

func GenerateFilePS1

func GenerateFilePS1(Path string, Force bool)

AddPS1 add a new PS1 to your list.

func ListPS1

func ListPS1()

ListPS1 show the list of your saved PS1.

func RemovePS1

func RemovePS1(PS1Name string)

RemovePS1 remove a PS1 from your list.

func SetPS1

func SetPS1(NewPS1 string, debug bool)

SetPS1 write to file one of the PS1 in the list.

Types

type Configs

type Configs struct {
	Psones map[string]Psone `yaml:"psones"`
}

type Psone

type Psone struct {
	//	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL