Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackupHistoryFileIfExists ¶
BackupHistoryFileIfExists creates a backup of the given history file in place with a .back suffix
func ConvertEntryToLine ¶
ConvertEntryToLine is a reverse parse operation that converts an Entry to a line for the zsh_history file
func RestoreOldHistory ¶
RestoreOldHistory moves the backup back to the main historyFile
func WriteHistoryFile ¶
WriteHistoryFile write the entries back to the history file (default ~/.zsh_history) and backs up the last one
Types ¶
type Entry ¶
Entry is struct that holds values for a particular history line
func MergeHistory ¶
MergeHistory combines to Entry slices and sorts them by timestamps
func SliceEntries ¶
SliceEntries reduces the slice of entries to only include entries AFTER the given timestamp
Click to show internal directories.
Click to hide internal directories.