3 # Description: Simple script to give copy-paste a progress percentage
6 # LIMITATION: this won't work when pasting to MTP device.
10 # Shell: POSIX compliant
13 sel=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
15 # Choose one of these two schemes by commenting
18 xargs -0 -I % rsync -ah --progress % "$PWD" < "$sel"
21 # xargs -0 -I % rsync -ah --info=progress2 % "$PWD" < "$sel"
24 if [ -p "$NNN_PIPE" ]; then
25 printf "-" > "$NNN_PIPE"