config

package
v0.0.0-...-0d35df2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config initializes some data for shell. e.g. username, colors, hostname...

Index

Constants

View Source
const (
	RESET  = "\033[0m"
	RED    = "\033[31m"
	GREEN  = "\033[32m"
	YELLOW = "\033[33m"
	BLUE   = "\033[34m"
	PURPLE = "\033[35m"
	CYAN   = "\033[36m"
	WHITE  = "\033[37m"
)

ANSI escape codes for some colors.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	User        *userPkg.User
	WD          string
	Hostname    string
	UserColor   string
	PathColor   string
	PromptColor string
	ResetColor  string
}

Config contains some info that will be used in shell.

func New

func New() (Config, error)

New returns a new Config value initialized with correct data. It also returns errors, if any.

Jump to

Keyboard shortcuts

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