mirror of
https://github.com/jarun/nnn.git
synced 2024-11-16 16:13:16 +00:00
15 lines
279 B
Plaintext
15 lines
279 B
Plaintext
|
#!/usr/bin/env sh
|
||
|
|
||
|
# Description: View an image or images in a directory in pager
|
||
|
#
|
||
|
# Shell: POSIX compliant
|
||
|
# Author: Arun Prakash Jana
|
||
|
|
||
|
if ! [ -z "$1" ]; then
|
||
|
if [ -d "$1" ]; then
|
||
|
viu -n "$1"/* 2>/dev/null | less -R
|
||
|
else
|
||
|
viu -n "$1" | less -R
|
||
|
fi
|
||
|
fi
|