better cloning
This commit is contained in:
parent
0d261bd1bd
commit
3594512291
@ -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
|
||||
|
13
dotfiles-old/manifest
Normal file
13
dotfiles-old/manifest
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user