config: fix some search paths
This commit is contained in:
parent
a3e7086243
commit
5b99005560
|
@ -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
|
||||||
|
|
|
@ -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 {} +
|
||||||
|
|
Loading…
Reference in New Issue