From 4f57b9085ac486a53194a38e81fc19c02df2b573 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 24 Sep 2024 23:14:43 +0200 Subject: nnn: fix the list of archive formats I do have atool, and it handle a lot more than the default list. --- %HOME%/.profile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '%HOME%/.profile') diff --git a/%HOME%/.profile b/%HOME%/.profile index f4575c2..3ca3cf6 100644 --- a/%HOME%/.profile +++ b/%HOME%/.profile @@ -133,5 +133,11 @@ command -v fd > /dev/null 2>&1 \ # -e Open text files in $EDITOR. # -o Only open on Enter, not on l. export NNN_OPTS=Aeo + export NNN_PLUG='f:myfzcd' export NNN_BMS="d:$HOME/Downloads;w:$HOME/workspace/personal" + +# For some reason, nnn doesn't support all of the formats by default, I don't +# know why. Apparently, this is the workaround, source: +# https://github.com/jarun/nnn/wiki/Usage +export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$" -- cgit v1.2.3