configuration/fetch_them_files.sh

16 lines
294 B
Bash
Raw Normal View History

2014-11-27 20:52:06 +01:00
#!/bin/bash
dotfiles=( vimrc Xresources zshrc xinitrc )
configfiles=( herbstluftwm/autostart herbstluftwm/panel.sh )
2014-11-27 20:52:06 +01:00
for file in "${dotfiles[@]}"; do
cp "$HOME/.$file" "$file"
done
for file in "${configfiles[@]}"; do
mkdir -p "${file%/*}"
cp "$HOME/.config/$file" "$file"
2014-11-27 20:52:06 +01:00
done