chore: remove old bookmarks dir env var

chore: remove old log
This commit is contained in:
Azalea Colburn 2025-03-23 08:47:49 -07:00
parent 51066ae7d0
commit d1d5ca126c
No known key found for this signature in database
2 changed files with 0 additions and 13 deletions

View File

@ -19,18 +19,6 @@ pub fn data_dir() -> Result<PathBuf> {
Ok(dir)
}
pub fn bookmarks_dir() -> Result<PathBuf> {
let dir = match env::var_os("_ZO_BOOKMARKS_DIR") {
Some(path) => PathBuf::from(path),
None => dirs::data_local_dir()
.context("could not find bookmarks directory, please set _ZO_BOOKMARKS_DIR manually")?
.join("zoxide"),
};
ensure!(dir.is_absolute(), "_ZO_BOOKMARKS_DIR must be an absolute path");
Ok(dir)
}
pub fn echo() -> bool {
env::var_os("_ZO_ECHO").is_some_and(|var| var == "1")
}

View File

@ -250,7 +250,6 @@ impl Database {
match serialize(&(&dirs, &bookmarks)) {
Ok(_) => {
util::write(path, bytes).context("could not write to database")?;
println!("yellow");
return Ok((dirs, bookmarks));
}
Err(_) => return Err(err).context("could not deserialize database"),