Discover Packages
github.com/lmorg/murex
shell
history
package
Version:
v0.0.0-...-b4c4296
Opens a new window with list of versions in this module.
Published: Jan 15, 2025
License: GPL-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ExpandVariables finds all history variables and replaces them with the value
of the variable
ExpandVariablesInLine finds history variables in a line and replaces it with
the value of the variable. It does not replace the line formatting variables.
History exports common functions needed for shell history
New creates a History object
func (h *History ) Dump() interface{}
Dump returns the entire history file
GetLine returns a specific line from the history file
Len returns the number of items in the history file
Write item to history file. eg ~/.murex_history
Item is the structure of an individual item in the History.list slice
Source Files
¶
Click to show internal directories.
Click to hide internal directories.