helper

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BASH_PROFILE string
View Source
var FISH_SCRIPT string
View Source
var SHELL_SCRIPTS = map[string]string{
	"bash": "~/.bash_profile",
	"zsh":  "~/.zshrc",
	"fish": getFishScript(),
}

map of shells to their file we edit by default

View Source
var ZSH_SCRIPT string

Functions

func ConfigFiles

func ConfigFiles() []string

ConfigFiles returns a list of all the config files we might edit

func InstallHelper

func InstallHelper(shell, script string) error

InstallHelper installs any helper code into our shell startup script(s)

func SetLogger

func SetLogger(l *logrus.Logger)

func UninstallHelper

func UninstallHelper(shell, script string) error

UninstallHelper removes any helper code from our shell startup script(s)

Types

This section is empty.

Jump to

Keyboard shortcuts

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