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,9 +55,9 @@ if [ -n "$LIST" ]; then
|
|||
fi
|
||||
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'
|
||||
# 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"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue