scripts/copy_scripts.sh

34 lines
1.6 KiB
Bash
Executable File

mkdir -p build_system mpd network scripts terminal themes vim x11
tree -dL 3 ~/.vim/pack > vim/packages
while read t f
do
cp $(find $t) $f
done <<END
$HOME/.XCompose x11/XCompose
$HOME/.Xresources x11/Xresources
$HOME/.cargo/config build_system/cargo_config
$HOME/.config/kitty/kitty.conf terminal/kitty.conf
$HOME/.config/mpd/mpd.conf mpd/mpd.conf
$HOME/.config/pacman/makepkg.conf build_system/makepkg.conf
$HOME/.ncmpcpp/bindings mpd/ncmpcpp_bind
$HOME/.ncmpcpp/config mpd/ncmpcpp_conf
$HOME/.sharenix.json network/sharenix.json
$HOME/.slade3/text_styles/* themes
$HOME/.vimrc vim/vimrc
$HOME/.xprofile x11/xprofile
$HOME/.zshrc terminal/zshrc
$HOME/src/scripts/* scripts
/etc/X11/xorg.conf.d/61-xwiimote-custom.conf x11/61-xwiimote-custom.conf
/etc/icecast.xml network/icecast.xml
/etc/motsognir.conf network/motsognir.conf
/etc/nginx/nginx.conf network/nginx.conf
/etc/systemd/network/* network
/mnt/d/w2/Output/_dlscr/bookmark_get.ps1 scripts/bookmark_get.ps1
/usr/share/X11/xkb/symbols/progm x11/progm.xkb
END
sed -i 's/password>.*<\//password>password removed<\//g' network/icecast.xml
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' mpd/mpd.conf