diff --git a/dotfiles-old/clone.sh b/dotfiles-old/clone.sh index 7d89fd9..1039bf5 100755 --- a/dotfiles-old/clone.sh +++ b/dotfiles-old/clone.sh @@ -1,26 +1,9 @@ #!/bin/sh -[ "$(printf "Abort.\nContinue.\n" | dmenu -p "Current path is '$(pwd)'. Continue?")" = "Continue." ] || exit +SRC="$HOME" +DEST="$(pwd)" +[ "$(printf "Abort.\nContinue.\n" | dmenu -p "Copying from '$SRC' to '$DEST'. Continue?")" = "Continue." ] || exit set -x -cp $HOME/.Xresources ./ -cp $HOME/.aliases ./ -cp $HOME/.env ./ -cp $HOME/.profile ./ -cp $HOME/.vimrc ./ -mkdir -p ./.config/ -cp $HOME/.config/ytfeed-config.txt ./.config/ - -mkdir -p ./.config/bspwm -cp $HOME/.config/bspwm/bspwmrc ./.config/bspwm/bspwmrc - -mkdir -p ./.config/i3 -cp $HOME/.config/i3/config ./.config/i3/config -mkdir -p ./.config/i3status -cp $HOME/.config/i3status/config ./.config/i3status/config - -mkdir -p ./.config/sxhkd -cp $HOME/.config/sxhkd/* ./.config/sxhkd/ -rm ./.config/sxhkd/sxhkdrc - -mkdir -p ./src/dmenu -cp $HOME/src/dmenu/config.h ./src/dmenu/config.h +for file in $(cat manifest); do + cp "$SRC/$file" "$DEST/$file" +done diff --git a/dotfiles-old/manifest b/dotfiles-old/manifest new file mode 100644 index 0000000..c42a082 --- /dev/null +++ b/dotfiles-old/manifest @@ -0,0 +1,13 @@ +.Xresources +.aliases +.env +.profile +.vimrc +.config/ytfeed-config.txt +.config/bspwm/bspwmrc +.config/i3/config +.config/i3status/config +.config/sxhkd/sxhkdrc-base +.config/sxhkd/sxhkdrc-bspwm +.config/sxhkd/sxhkdrc-i3wm +src/dmenu/config.h