scripts/copy-files.fish

38 lines
727 B
Fish
Raw Normal View History

#!/usr/bin/env fish
2019-06-07 13:37:33 -07:00
2019-06-29 12:57:32 -07:00
# copy regular files
mkdir -p \
applications \
build-system \
network \
scripts \
system \
themes \
vim
2019-06-07 13:37:33 -07:00
while read f t
eval set t $t
2019-06-24 06:23:58 -07:00
cp -r $t $f
end < files
2019-06-07 13:37:33 -07:00
2019-06-29 13:17:39 -07:00
# copy font configs
find /etc/fonts/conf.d/*.conf > fonts/conflist
for f in /etc/fonts/conf.d/*.conf
if not test -L "$f"
cp $f fonts
end
end
2019-06-29 12:57:32 -07:00
# copy vim package names
tree -dL 3 ~/.vim/pack > vim/packages
for repo in ~/.vim/pack/*/*/*
2019-06-29 13:17:39 -07:00
pushd $repo
2019-06-29 12:57:32 -07:00
echo (basename $PWD) "<"(git config --get remote.origin.url)">"
2019-06-29 13:17:39 -07:00
popd
2019-06-29 12:57:32 -07:00
end > vim/package_repos
2019-06-07 13:37:33 -07:00
sed -i 's/password>.*<\//password>password removed<\//g' network/icecast.xml
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' network/mpd.conf