My build of nnn with minor changes
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 
 
 

28 líneas
634 B

  1. #!/bin/bash
  2. # Description: Pick files and pipe the line-separated list to another utility
  3. #
  4. # Shell: bash
  5. # Author: Arun Prakash Jana
  6. #
  7. # Usage:
  8. # Copy this file in your $PATH, make it executable and preferably name it to picker.
  9. # Run commands like:
  10. # ls -l `picker`
  11. # cd `picker`
  12. # or, in fish shell:
  13. # ls -l (picker)
  14. # cd (picker)
  15. #
  16. # NOTE: This use case is limited to picking files, other functionality may not work as expected.
  17. nnn -p /tmp/pickerout
  18. > /tmp/picked
  19. while read -d $'\0' line ; do
  20. echo $line >> /tmp/picked
  21. done < /tmp/pickerout
  22. echo $line >> /tmp/picked
  23. cat /tmp/picked
  24. rm /tmp/pickerout /tmp/picked