add colors to nnn

This commit is contained in:
JOLIMAITRE Matthieu 2024-06-18 04:42:11 +02:00
parent 959a858225
commit 49cd2cff2f

View file

@ -4,7 +4,8 @@
export NNN_PLUG="p:preview-tui;x:!chmod +x $nnn"
# Colors
export NNN_FCOLORS="0000DE000000000000000000"
color=$(printf %02d $MACHINE_COLOR)
export NNN_FCOLORS="0000${color}000000000000000000"
# 1 2 3 4 5 6 7 8 9101112
# 1 - block device
# 2 - char device