mirror of
https://github.com/jarun/nnn.git
synced 2024-09-29 17:27:51 +00:00
preview-tabbed: fixed if statement
This commit is contained in:
parent
7efd6db873
commit
ecc0a4d38b
|
@ -180,7 +180,7 @@ previewer_loop () {
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
inode/directory)
|
inode/directory)
|
||||||
if [[ -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]]; then
|
if [[ ! -z $PICTURES_DIR && "$FILE" == *"$PICTURES_DIR"* ]] ; then
|
||||||
if type sxiv >/dev/null 2>&1 ; then
|
if type sxiv >/dev/null 2>&1 ; then
|
||||||
( sxiv -te "$XID" "$FILE" 2>/dev/null || $TERMINAL "$XID" -e nnn "$FILE" ) &
|
( sxiv -te "$XID" "$FILE" 2>/dev/null || $TERMINAL "$XID" -e nnn "$FILE" ) &
|
||||||
elif type nsxiv >/dev/null 2>&1 ; then
|
elif type nsxiv >/dev/null 2>&1 ; then
|
||||||
|
|
Loading…
Reference in a new issue