read_history

Function read_history 

Source
pub fn read_history(source: HistorySource) -> Result<String>
Expand description

Reads command history from a specified shell or history manager.

This function dispatches to a specific reader based on the source enum variant. Each reader attempts to find the history in its default location.