mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Merge pull request #931 from luukvbaal/preview-tui
.iconlookup: shebang to env sh
This commit is contained in:
commit
da734c50da
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
# Description: Print icons in front of list of directories/files
|
# Description: Print icons in front of list of directories/files
|
||||||
|
|
||||||
|
|
|
@ -169,8 +169,7 @@ preview_file() {
|
||||||
cd "$1" || return
|
cd "$1" || return
|
||||||
if exists tree; then
|
if exists tree; then
|
||||||
if [ "$ICONLOOKUP" -ne 0 ]; then
|
if [ "$ICONLOOKUP" -ne 0 ]; then
|
||||||
tree -L 1 --dirsfirst -F --noreport -i | head -n "$((lines - 3))" | \
|
tree -L 1 --dirsfirst -F --noreport -i | head -n "$((lines - 3))" | "$(dirname "$0")"/.iconlookup -l "$cols" -b "\n"
|
||||||
"${XDG_CONFIG_HOME:-$HOME/.config}/nnn/plugins/.iconlookup" -l "$cols" -b "\n"
|
|
||||||
else
|
else
|
||||||
fifo_pager tree -L 1 --dirsfirst -C -F --noreport -i
|
fifo_pager tree -L 1 --dirsfirst -C -F --noreport -i
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in a new issue