chisel/
history.rs

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