From 5b99005560abc7c3a69b280be113e8322abf0032 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Mon, 17 Jan 2022 21:25:24 +0100 Subject: [PATCH] config: fix some search paths --- .config/shell/browse | 2 +- .local/bin/scripts/clean | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/shell/browse b/.config/shell/browse index 5e86bfb..bed88cd 100644 --- a/.config/shell/browse +++ b/.config/shell/browse @@ -51,7 +51,7 @@ alias uloc='noglob sudo updatedb && loci' locei() { locate --all --basename "\\$1" "$@" | fselect } alias loce='noglob locei' # locate all -alias loca='noglob sudo updatedb --prunenames "" --prunefs "" --prunepaths "/var/cache" -o /var/lib/mlocate/all.db && loci --database /var/lib/mlocate/all.db' +alias loca='noglob sudo updatedb --prunenames "" --prunefs "" --prunepaths "/var/cache" -o /var/cache/locate-all.db && loci --database /var/cache/locate-all.db' # ZOXIDE {{{1 alias c=z diff --git a/.local/bin/scripts/clean b/.local/bin/scripts/clean index 07801b6..cc12f7c 100755 --- a/.local/bin/scripts/clean +++ b/.local/bin/scripts/clean @@ -30,7 +30,7 @@ for k in "${!_clean_map[@]}"; do done highlight "s :: recursively remove logs" -[[ $1 =~ "s" ]] && find \( -name ".git" -o -name "src" \) -prune -o \ +[[ $1 =~ "s" ]] && find \( -name ".git" -o -name "src" -o -name "pkg" \) -prune -o \ \( \( -name "logs" -o -name "log" -o -name "crash-reports" \) -prune -o \ -type f \( -name "*.log.gz" -o -name "*.log.[0-9]" -o -iname "*.log" \) \) \ -print -exec rm -rI {} +