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.
 
 
 
 
 
 

15 lines
279 B

  1. #!/usr/bin/env sh
  2. # Description: View an image or images in a directory in pager
  3. #
  4. # Shell: POSIX compliant
  5. # Author: Arun Prakash Jana
  6. if ! [ -z "$1" ]; then
  7. if [ -d "$1" ]; then
  8. viu -n "$1"/* 2>/dev/null | less -R
  9. else
  10. viu -n "$1" | less -R
  11. fi
  12. fi