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.