Skip to main content

history_path

Function history_path 

Source
pub fn history_path(prog: &str) -> PathBuf
Expand description

Derives the conventional history path for a program name.

A prog containing / or . is taken to be the path itself; otherwise the result is ~/.{prog}_history, as bestline does.