dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit da1227c77bd083f73f4e369a8820a535442065a7
parent 7c443fce87d5fd98997d7f7ff37f87e7d2757fbe
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 27 Oct 2020 11:27:56 +0100

lf: mapping to compress to .tar.gz

Former-commit-id: 8c20268bd99976356ece69af41df1bef9cef8ac7
Diffstat:
Mlf/lfrc | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/lf/lfrc b/lf/lfrc @@ -76,6 +76,14 @@ cmd zip ${{ rm -rf $f-zip/ }} +cmd tar ${{ + set -f + mkdir $f-tgz + cp -r $fx $f-tgz + (cd $f-tgz && tar cvzf $f.tar.gz .) + rm -rf $f-tgz +}} + cmd paste &{{ load=$(lf -remote 'load') mode=$(echo "$load" | sed -n '1p') @@ -233,6 +241,7 @@ map ec edit_config map ce edit_config map tz zip +map tt tar map tu extract map z push :z