chore: remove old bookmarks dir env var
chore: remove old log
This commit is contained in:
parent
51066ae7d0
commit
d1d5ca126c
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue