From: Ian Kelling Date: Wed, 18 May 2022 18:20:51 +0000 (-0400) Subject: fixup gitignore X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=dca8796ccf923c3d4edea468bab38e86b83510df;p=distro-setup fixup gitignore --- diff --git a/.gitignore b/.gitignore index 718065b..5239dcb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /filesystem/etc/prometheus-export-htpasswd # other git repos /.emacs.d -/Arduino +# generated files +/subdir_files/.config/i3/config +/subdir_files/.config/sway/config diff --git a/i3-sway/gen b/i3-sway/gen index 22a4e47..5653547 100755 --- a/i3-sway/gen +++ b/i3-sway/gen @@ -5,5 +5,9 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR x="$(readlink -f -- "${BASH_SOURCE[0]}")"; cd ${x%/*} # directory of this file -cat common.conf sway.conf > /a/bin/distro-setup/subdir_files/.config/sway/config -cat common.conf i3.conf > /a/bin/distro-setup/subdir_files/.config/i3/config +dir=/a/bin/distro-setup/subdir_files/.config/sway +mkdir -p $dir +cat common.conf sway.conf > $dir/config +dir=/a/bin/distro-setup/subdir_files/.config/i3 +mkdir -p $dir +cat common.conf i3.conf > $dir/config