skell for save_config_file scritp

This commit is contained in:
statzitz 2024-08-03 17:04:51 +02:00
parent 3f02c8f5f6
commit c9af9bc899
2 changed files with 17 additions and 3 deletions

View file

@ -2,7 +2,7 @@
_DOTFILES="~/Documents/git/dotfiles"
_FILE_TO_COPY="d ~/.config/alacritty dotconfig
_FILE_TO_COPY='d ~/.config/alacritty dotconfig
d ~/.config/eww dotconfig
d ~/.config/hypr dotconfig
d ~/.config/nvim dotconfig
@ -15,8 +15,7 @@ d ~/.local/bin dotlocal
d /etc/ly dotetc
f /etc/makepkg.conf dotetc/makepkg.conf
f /etc/pacman.conf dotetc/makepkg.conf
f /etc/doas.conf dotetc/doas.conf
"
f /etc/doas.conf dotetc/doas.conf'
# Use `install -Dm644 <file_name> <dest>` for f
# Use `cp -Rf <folder> <dest>` for d

15
save_config_file Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
cd "$( dirname "$( readlink -f "$0" )" )" || exit
CONFIG_PATH="./config"
. ./config/*.conf
echo "$_FILE_TO_COPY"
echo "$_DOTFILES"
while VAR= read -r line;
do
echo " .. $line .. ";
done <<< "$_FILE_TO_COPY"