Documentation
¶
Index ¶
Constants ¶
View Source
const BASH_HISTORY_PATH = ".bash_history"
View Source
const ZSH_HISTORY_PATH = ".zsh_history"
Variables ¶
This section is empty.
Functions ¶
func GetHistory ¶
GetShellHistory gets the most recently used command from the shell history file. It will attempt to open all of them, only getting the most recently modified one. Only get n lines. If the history file is zsh, it will just get the command and not the metadata.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.