Add --cache-dir option

This commit is contained in:
sharkdp authored and David Peter committed 2019-02-07 22:19:32 +01:00
1 parent 6523bbf62f
commit 54143d1403
3 files changed
+13 -2

No files matched your search

+4
View File
@@ -216,6 +216,10 @@ pub fn config_dir() -> Cow<'static, str> {
PROJECT_DIRS.config_dir().to_string_lossy()
}
pub fn cache_dir() -> Cow<'static, str> {
PROJECT_DIRS.cache_dir().to_string_lossy()
}
pub fn clear_assets() {
print!("Clearing theme set cache ... ");
fs::remove_file(theme_set_path()).ok();