scripts

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

commit 62cd5e6f9b80b1f2cbd6f2ad553b5e62813cb2ab
parent 98fcba37eee4e6d825aa1674529301e7c77649a2
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date:   Fri, 13 Oct 2023 15:43:51 +0200

Fixes and changes

Diffstat:
Mconfig-backup | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/config-backup b/config-backup @@ -7,20 +7,18 @@ folder=$HOME/box/configbackups dotfiles=".bash_profile .bashrc .profile .inputrc .mblaze .nexrc .tmux.conf .xinitrc" config="colors fontconfig git imv msmtp zathura" src="dmenu dwm st st-lightbg" -share="gmni" -mkdir -p "$folder"/config "$folder"/home "$folder"/share "$folder"/src +for d in config home src ssh; do mkdir -p "$folder/$d"; done # 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 +cp "$HOME"/.ssh/config "$folder"/ssh/ -rm "$folder"/config/git/credentials +# redact sed 's/^password .*/password REDACTED/' \ < "$folder"/config/msmtp/config > "$folder"/config/msmtp/config.redacted