mirror of
https://github.com/jarun/nnn.git
synced 2025-01-15 21:36:42 +00:00
fzcd: avoid using non-portable xargs flag
This commit is contained in:
parent
ffd0468f67
commit
24db74fd7b
|
@ -55,15 +55,15 @@ if [ -n "$LIST" ]; then
|
||||||
fi
|
fi
|
||||||
done < "$LIST"
|
done < "$LIST"
|
||||||
|
|
||||||
sel=$(xargs -d '\n' -a "$tmpfile" -I{} find {} -type f -printf "%H//%P\n" | sed '/.*\/\/\(\..*\|.*\/\..*\)/d; s:/\+:/:g' | fzf --delimiter / --tiebreak=begin --info=hidden)
|
sel=$(xargs -d '\n' < "$tmpfile" -I{} find {} -type f -printf "%H//%P\n" | sed '/.*\/\/\(\..*\|.*\/\..*\)/d; s:/\+:/:g' | fzf --delimiter / --tiebreak=begin --info=hidden)
|
||||||
# Alternative for 'fd'
|
# Alternative for 'fd'
|
||||||
# sel=$(xargs -d '\n' -a "$tmpfile" fd . | fzf --delimiter / --tiebreak=begin --info=hidden)
|
# sel=$(xargs -d '\n' < "$tmpfile" fd . | fzf --delimiter / --tiebreak=begin --info=hidden)
|
||||||
|
|
||||||
rm "$tmpfile"
|
rm "$tmpfile"
|
||||||
else
|
else
|
||||||
printf "find missing"
|
printf "find missing"
|
||||||
read -r _
|
read -r _
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue