nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit da734c50da20e93cdb6842594185e93514167c69
parent 5cf723fbe43134b580ba651559b698a60f82737f
Author: Mischievous Meerkat <engineerarun@gmail.com>
Date:   Tue, 30 Mar 2021 21:24:47 +0530

Merge pull request #931 from luukvbaal/preview-tui

.iconlookup: shebang to env sh
Diffstat:
Mplugins/.iconlookup | 2+-
Mplugins/preview-tui-ext | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)

diff --git 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 @@ -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;