Update 2024-02-14 07:51 OpenBSD/amd64-x13
This commit is contained in:
17
.bin/OLD/nnn-preview
Executable file
17
.bin/OLD/nnn-preview
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
trap cleanup 1 2 3 6 9 11
|
||||
cleanup() {
|
||||
kill $PID 2>/dev/null
|
||||
exit
|
||||
}
|
||||
|
||||
test -p "${NNN_FIFO}" || exit 1
|
||||
|
||||
while read line
|
||||
kill $PID 2> /dev/null
|
||||
wait
|
||||
nsxiv -N tabbed $line &
|
||||
PID=$!
|
||||
do
|
||||
done < "${NNN_FIFO}"
|
||||
Reference in New Issue
Block a user