From: Luuk van Baal Date: Tue, 30 Mar 2021 15:49:31 +0000 (+0200) Subject: .iconlookup: shebang to env sh X-Git-Tag: v3.7~24^2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9fcdf78643fe9b0e72825566588e24cad3a612c6;p=nnn.git .iconlookup: shebang to env sh --- diff --git a/plugins/.iconlookup b/plugins/.iconlookup index 2be70e60..c2d98468 100755 --- a/plugins/.iconlookup +++ b/plugins/.iconlookup @@ -1,4 +1,4 @@ -#!/usr/bin/sh +#!/usr/bin/env sh # Description: Print icons in front of list of directories/files diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index b54f784b..e86af860 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -169,8 +169,7 @@ preview_file() { cd "$1" || return if exists tree; then if [ "$ICONLOOKUP" -ne 0 ]; then - tree -L 1 --dirsfirst -F --noreport -i | head -n "$((lines - 3))" | \ - "${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins/.iconlookup" -l "$cols" -b "\n" + tree -L 1 --dirsfirst -F --noreport -i | head -n "$((lines - 3))" | "$(dirname "$0")"/.iconlookup -l "$cols" -b "\n" else fifo_pager tree -L 1 --dirsfirst -C -F --noreport -i fi;