nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit fbb2172627934467031edb15280ce9029b916776
parent e67587204b8ee41766ad8339e73305f3a234a413
Author: Arun <engineerarun@gmail.com>
Date:   Tue,  1 Feb 2022 18:28:41 +0530

Merge pull request #1300 from N-R-K/rsynccp_fix

[rsynccp & fzcd]: avoid using non-portable xargs flag
Diffstat:
Mplugins/fzcd | 6+++---
Mplugins/rsynccp | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/plugins/fzcd b/plugins/fzcd @@ -55,15 +55,15 @@ 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 printf "find missing" read -r _ - exit 1 + exit 1 fi fi diff --git a/plugins/rsynccp b/plugins/rsynccp @@ -15,10 +15,10 @@ sel=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} # Choose one of these two schemes by commenting # more verbose -xargs -0 -a "$sel" -I % rsync -ah --progress % "$PWD" +xargs -0 -I % rsync -ah --progress % "$PWD" < "$sel" # less verbose -# xargs -0 -a "$sel" -I % rsync -ah --info=progress2 % "$PWD" +# xargs -0 -I % rsync -ah --info=progress2 % "$PWD" < "$sel" # Clear selection if [ -p "$NNN_PIPE" ]; then