From a6961b28a848aeb2a583787c73639b81d1758b8a Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Fri, 26 Mar 2021 19:03:16 +0100 Subject: [PATCH] config: update fd --- .config/fd/ignore | 2 -- .config/shell/functions | 10 ++++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/fd/ignore b/.config/fd/ignore index 4648658..5bbb844 100644 --- a/.config/fd/ignore +++ b/.config/fd/ignore @@ -1,5 +1,3 @@ -.ignore - .Trash-1000/ lost+found/ diff --git a/.config/shell/functions b/.config/shell/functions index 57136f6..31395d5 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -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 }