config

package
v0.0.0-...-f4e3d25 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config loads and holds shell configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Drives         map[string]string // drive letter -> Unix path
	PromptDefault  string
	HistoryFile    string
	StartupEnabled bool
}

Config holds all shell configuration.

func Defaults

func Defaults() *Config

Defaults returns a Config with sensible defaults and no drive mappings. Drive defaults (C: and A:) are set by the caller after resolving home dir.

func Load

func Load(path string) (*Config, error)

Load reads a config file at path and returns a populated Config. Unknown keys are silently ignored. Missing file returns Defaults.

Jump to

Keyboard shortcuts

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