fix: clarify that HISTFILE, if used, must be exported (#2758)

This commit is contained in:
Corey Kosak 2025-05-14 23:29:07 -04:00 committed by GitHub
parent 46efc937c6
commit 593702c91c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,7 +103,7 @@ fn is_file(p: PathBuf) -> Result<PathBuf> {
if p.is_file() {
Ok(p)
} else {
bail!("Could not find history file {:?}. Try setting $HISTFILE", p)
bail!("Could not find history file {:?}. Try setting and exporting $HISTFILE", p)
}
}
fn is_dir(p: PathBuf) -> Result<PathBuf> {
@ -111,7 +111,7 @@ fn is_dir(p: PathBuf) -> Result<PathBuf> {
Ok(p)
} else {
bail!(
"Could not find history directory {:?}. Try setting $HISTFILE",
"Could not find history directory {:?}. Try setting and exporting $HISTFILE",
p
)
}