config: update fd
This commit is contained in:
parent
7c8637b1aa
commit
a6961b28a8
|
@ -1,5 +1,3 @@
|
|||
.ignore
|
||||
|
||||
.Trash-1000/
|
||||
lost+found/
|
||||
|
||||
|
|
|
@ -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,8 +308,8 @@ pathadd() {
|
|||
local IFS=":"
|
||||
local result="$@"
|
||||
unset IFS
|
||||
cat /etc/environment | head -1 | cut -d'"' -f2 | tr ":" "\n" | while read v; do
|
||||
[[ " $@ " =~ " $v " ]] || result+=":$v"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue