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 {} +