My build of nnn with minor changes
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

16 строки
505 B

  1. #!/usr/bin/env bash
  2. # Description: Decrypts selected files using gpg. The contents of the decrypted file are stored in a file with extension .dec
  3. #
  4. # Note: If an appropriate private key cannot be found gpg silently prints a message in the background and no files are written.
  5. #
  6. # Shell: POSIX compliant
  7. # Author: KlzXS
  8. selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
  9. files=$(tr '\0' '\n' < "$selection")
  10. printf "%s" "$files" | xargs -n1 -I{} gpg --decrypt --output "{}.dec" {}