chisel/history.rs
//! chisel history file
use std::path::PathBuf;
/// The name of the chisel history file
pub const CHISEL_HISTORY_FILE_NAME: &str = ".chisel_history";
/// Returns the path to foundry's global toml file that's stored at `~/.foundry/.chisel_history`
pub fn chisel_history_file() -> Option<PathBuf> {
foundry_config::Config::foundry_dir().map(|p| p.join(CHISEL_HISTORY_FILE_NAME))
}