dotfiles

My collection of dotfiles
git clone git://git.noxz.tech/dotfiles
Log | Files | Refs

commit 254b40fb7c09d3db88aa91427093d724c5dac515
parent 2c6a036bc43ffcb68804e52cdb3900e6afbef593
Author: Chris Noxz <chris@noxz.tech>
Date:   Fri,  3 Jan 2020 11:22:44 +0100

[vifm] Add fileviewer for *.zip

Diffstat:
Mvifm/.config/vifm/vifmrc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vifm/.config/vifm/vifmrc b/vifm/.config/vifm/vifmrc @@ -47,7 +47,7 @@ highlight /(.ff.gz|.ff|.bmp|.jpg|.jpeg|.png|,gif|.xpm|.svg)$/ \ cterm=bold ctermfg=6 ctermbg=default highlight /(.pdf|.ps)$/ \ cterm=bold ctermfg=6 ctermbg=default -highlight /(.tar.gz|.tar)$/ +highlight /(.tar.gz|.tar|.zip)$/ \ cterm=bold ctermfg=red ctermbg=default " open images with sxiv (in background) @@ -66,6 +66,7 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, \ mpv %c 2>/dev/null & +fileviewer *.zip unzip -Z1 %c | fold -w $((%pw-1)) | sed -e 's/^/ /' fileviewer *.tar tar -tf %c | fold -w $((%pw-1)) | sed -e 's/^/ /' fileviewer *.tar.gz tar -ztf %c | fold -w $((%pw-1)) | sed -e 's/^/ /'