config: update fd

This commit is contained in:
xerus2000 2021-03-26 19:03:16 +01:00
parent 7c8637b1aa
commit a6961b28a8
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,3 @@
.ignore
.Trash-1000/
lost+found/

View File

@ -269,7 +269,7 @@ cl() {
# FILES
alias f="noglob $(test -x "$(which fd)" && echo fd || echo "fdfind") --hidden --no-ignore-vcs"
alias f="noglob $(test -x "$(which fd)" && echo fd || echo "fdfind") --hidden --no-ignore-vcs --one-file-system"
#alias f='find -not -path "*.sync*" -and -not \( -name daten -prune \)'
#alias f1='find -mindepth 1 -maxdepth 1'
@ -308,9 +308,9 @@ pathadd() {
local IFS=":"
local result="$@"
unset IFS
cat /etc/environment | head -1 | cut -d'"' -f2 | tr ":" "\n" | while read v; do
[[ " $@ " =~ " $v " ]] || result+=":$v"
done
cat /etc/environment | head -1 | cut -d'"' -f2 | tr ":" "\n" | while read v
do [[ " $@ " =~ " $v " ]] || result+=":$v"
done
echo PATH=\"${result}\"\\n$(cat /etc/environment | tail -n +2) | sudo tee /etc/environment
}
@ -371,6 +371,8 @@ clean() {
export aptclean_last=$aptclean_cur
fi
which yay &>/dev/null && yay -Sc
highlight "e to delete empty folders"
[[ $1 =~ "e" ]] && find -empty -type d -delete -print
}