mirror of
https://gitea.zaclys.com/yannic/dotfiles.git
synced 2026-05-23 19:37:28 +02:00
Improve find command
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ else
|
|||||||
echo "warning: sesh is not installed" >&2
|
echo "warning: sesh is not installed" >&2
|
||||||
fi
|
fi
|
||||||
if command -v zoxide &>/dev/null; then
|
if command -v zoxide &>/dev/null; then
|
||||||
eval "$(zoxide init zsh --cmd cd)"
|
eval "$(zoxide init zsh --no-cmd)"
|
||||||
else
|
else
|
||||||
echo "warning: zoxide is not installed" >&2
|
echo "warning: zoxide is not installed" >&2
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
# no cache but more accurate than pj (https://github.com/josephschmitt/pj)
|
# no cache but more accurate than pj (https://github.com/josephschmitt/pj)
|
||||||
fd -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" | awk '{ print length, $0 }' | sort -n | cut -d' ' -f2-
|
FD=$(command -v fdfind || command -v fd)
|
||||||
|
"$FD" -H -d 7 -t d -E .git -E .gitlab . "{{ .projectdir }}" \
|
||||||
|
| awk '{ print length, $0 }' \
|
||||||
|
| sort -n \
|
||||||
|
| cut -d' ' -f2-
|
||||||
|
|||||||
Reference in New Issue
Block a user