shell

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindByLine

func FindByLine(filename string, finder func(line string) bool) (lineNumber int, lineContent string, err error)

func GetAlias

func GetAlias(aliasFile string, aliasName string) (command string, err error)

func GetShellInfo

func GetShellInfo() (shellName string, rcFile string, err error)

func RemoveAlias

func RemoveAlias(aliasFile string, aliasName string) error

func SetAlias

func SetAlias(aliasFile string, aliasName string, command string) error

Types

type ShellInfo

type ShellInfo struct {
	Name   string
	RCFile string
	// contains filtered or unexported fields
}

func NewShellInfo

func NewShellInfo() (si *ShellInfo, err error)

Jump to

Keyboard shortcuts

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