scripts

Various scripts for UNIX-like systems
git clone https://git.tronto.net/scripts
Download | Log | Files | Refs | README

commit 46991f6b5f567aea1990fb2d138e0b31d3dec423
parent de2e9cd47bb9ba35e9c62894c7c6a09551640068
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri,  3 Jun 2022 15:58:14 +0200

Added .local/share backup, create empty directory before copying

Diffstat:
Mconfig-backup | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/config-backup b/config-backup @@ -7,12 +7,16 @@ folder=$HOME/box/configbackups dotfiles=".bash_profile .bashrc .profile .inputrc .mblaze .nexrc .tmux.conf .xinitrc" config="colors fontconfig git imv mpop msmtp zathura" src="dmenu dwm herbe st" +share="gmni" + +mkdir -p $folder/config $folder/home $folder/share $folder/src # copy for i in $dotfiles; do cp -Rf $HOME/$i $folder/home/; done for i in $config; do cp -Rf $HOME/.config/$i $folder/config/; done for i in $src; do cp -Rf $HOME/.local/src/$i $folder/src/; done +for i in $share; do cp -Rf $HOME/.local/share/$i $folder/share/; done # redact