config: fix some search paths

This commit is contained in:
xeruf 2022-01-17 21:25:24 +01:00
parent a3e7086243
commit 5b99005560
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ alias uloc='noglob sudo updatedb && loci'
locei() { locate --all --basename "\\$1" "$@" | fselect } locei() { locate --all --basename "\\$1" "$@" | fselect }
alias loce='noglob locei' alias loce='noglob locei'
# locate all # 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 # ZOXIDE {{{1
alias c=z alias c=z

View File

@ -30,7 +30,7 @@ for k in "${!_clean_map[@]}"; do
done done
highlight "s :: recursively remove logs" 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 \ \( \( -name "logs" -o -name "log" -o -name "crash-reports" \) -prune -o \
-type f \( -name "*.log.gz" -o -name "*.log.[0-9]" -o -iname "*.log" \) \) \ -type f \( -name "*.log.gz" -o -name "*.log.[0-9]" -o -iname "*.log" \) \) \
-print -exec rm -rI {} + -print -exec rm -rI {} +