config: update fd
This commit is contained in:
parent
7c8637b1aa
commit
a6961b28a8
|
@ -1,5 +1,3 @@
|
||||||
.ignore
|
|
||||||
|
|
||||||
.Trash-1000/
|
.Trash-1000/
|
||||||
lost+found/
|
lost+found/
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ cl() {
|
||||||
|
|
||||||
# FILES
|
# 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 f='find -not -path "*.sync*" -and -not \( -name daten -prune \)'
|
||||||
#alias f1='find -mindepth 1 -maxdepth 1'
|
#alias f1='find -mindepth 1 -maxdepth 1'
|
||||||
|
|
||||||
|
@ -308,9 +308,9 @@ pathadd() {
|
||||||
local IFS=":"
|
local IFS=":"
|
||||||
local result="$@"
|
local result="$@"
|
||||||
unset IFS
|
unset IFS
|
||||||
cat /etc/environment | head -1 | cut -d'"' -f2 | tr ":" "\n" | while read v; do
|
cat /etc/environment | head -1 | cut -d'"' -f2 | tr ":" "\n" | while read v
|
||||||
[[ " $@ " =~ " $v " ]] || result+=":$v"
|
do [[ " $@ " =~ " $v " ]] || result+=":$v"
|
||||||
done
|
done
|
||||||
echo PATH=\"${result}\"\\n$(cat /etc/environment | tail -n +2) | sudo tee /etc/environment
|
echo PATH=\"${result}\"\\n$(cat /etc/environment | tail -n +2) | sudo tee /etc/environment
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -371,6 +371,8 @@ clean() {
|
||||||
export aptclean_last=$aptclean_cur
|
export aptclean_last=$aptclean_cur
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
which yay &>/dev/null && yay -Sc
|
||||||
|
|
||||||
highlight "e to delete empty folders"
|
highlight "e to delete empty folders"
|
||||||
[[ $1 =~ "e" ]] && find -empty -type d -delete -print
|
[[ $1 =~ "e" ]] && find -empty -type d -delete -print
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue