My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 line
414 B

  1. #!/usr/bin/env sh
  2. # Description: Copy selection to clipboard
  3. #
  4. # Shell: POSIX compliant
  5. # Author: Arun Prakash Jana
  6. SELECTION=${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection
  7. # Linux
  8. xargs -0 < "$SELECTION" | xsel -bi
  9. # macOS
  10. # xargs -0 < "$SELECTION" | pbcopy
  11. # Termux
  12. # xargs -0 < "$SELECTION" | termux-clipboard-set
  13. # Cygwin
  14. # xargs -0 < "$SELECTION" | clip
  15. # Wayland
  16. # xargs -0 < "$SELECTION" | wl-copy