Exclude container stuff by default on Linux
STR: 1. Install/use podman or even better, Fedora Silverblue, where this is built-in. You will see a lot of duplicates… This should fix it. Note I used `*/home` to allow `/var/home` where Fedora Silverblue mounts it's homedir (it is symbolic-linked to `/home`, but I don't know how this app handles that.)
This commit is contained in:
parent
8df5e991a6
commit
46cd20401b
|
@ -3,7 +3,7 @@ use std::path::Path;
|
|||
use crate::common::Common;
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*,/home/*/.cache/*";
|
||||
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*,/home/*/.cache/*,*/home/*/.local/share/containers/*";
|
||||
#[cfg(not(target_family = "unix"))]
|
||||
pub const DEFAULT_EXCLUDED_ITEMS: &str = "*\\.git\\*,*\\node_modules\\*,*\\lost+found\\*,*:\\windows\\*,*:\\$RECYCLE.BIN\\*,*:\\$SysReset\\*,*:\\System Volume Information\\*,*:\\OneDriveTemp\\*,*:\\hiberfil.sys,*:\\pagefile.sys,*:\\swapfile.sys";
|
||||
|
||||
|
|
Loading…
Reference in a new issue