From 3bd115ef936e67313b1395b2bf5cbcc3002dbd19 Mon Sep 17 00:00:00 2001 From: Dave Snider Date: Sat, 29 Aug 2020 15:56:55 -0700 Subject: Add comment for imv command in imgview plugin. Check with which instead of version (#715) * change version checks to `which` instead. add comments around imvr in linux * add which checks for renamer and preview-tui as well --- plugins/renamer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/renamer') diff --git a/plugins/renamer b/plugins/renamer index 4c15764..68b6ef0 100755 --- a/plugins/renamer +++ b/plugins/renamer @@ -14,10 +14,10 @@ selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection} -if command -v qmv >/dev/null 2>&1; then +if which qmv >/dev/null 2>&1; then batchrenamesel="qmv -fdo -da" batchrename="qmv -fdo -a" -elif command -v vidir >/dev/null 2>&1; then +elif which vidir >/dev/null 2>&1; then batchrenamesel="vidir" batchrename="vidir" else -- cgit v1.2.3-70-g09d2