Move stuff around
This commit is contained in:
parent
ef72336887
commit
e69af0bcc9
@ -121,7 +121,7 @@ fi
|
|||||||
echo Creating backup
|
echo Creating backup
|
||||||
mkdir -p ~/old_dat/.config
|
mkdir -p ~/old_dat/.config
|
||||||
mkdir -p ~/old_dat/.doom.d
|
mkdir -p ~/old_dat/.doom.d
|
||||||
mkdir -p ~/old_dat/.easystroke
|
#mkdir -p ~/old_dat/.easystroke
|
||||||
mkdir -p ~/old_dat/.mozilla
|
mkdir -p ~/old_dat/.mozilla
|
||||||
mkdir -p ~/old_dat/scripts
|
mkdir -p ~/old_dat/scripts
|
||||||
mkdir -p ~/old_dat/.elvish
|
mkdir -p ~/old_dat/.elvish
|
||||||
@ -143,21 +143,9 @@ fi
|
|||||||
if [[ -d ~/.config/i3 ]]; then
|
if [[ -d ~/.config/i3 ]]; then
|
||||||
rsync -ah ~/.config/i3 ~/old_dat/.config/
|
rsync -ah ~/.config/i3 ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/neofetch ]]; then
|
|
||||||
rsync -ah ~/.config/neofetch ~/old_dat/.config/
|
|
||||||
fi
|
|
||||||
if [[ -d ~/.config/openbox ]]; then
|
|
||||||
rsync -ah ~/.config/openbox ~/old_dat/.config/
|
|
||||||
fi
|
|
||||||
if [[ -d ~/.config/polybar ]]; then
|
if [[ -d ~/.config/polybar ]]; then
|
||||||
rsync -ah ~/.config/polybar ~/old_dat/.config/
|
rsync -ah ~/.config/polybar ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/termite ]]; then
|
|
||||||
rsync -ah ~/.config/termite ~/old_dat/.config/
|
|
||||||
fi
|
|
||||||
if [[ -d ~/.config/variety ]]; then
|
|
||||||
rsync -ah ~/.config/variety ~/old_dat/.config/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# doom.d folder
|
# doom.d folder
|
||||||
if [[ -d ~/.doom.d ]]; then
|
if [[ -d ~/.doom.d ]]; then
|
||||||
@ -174,11 +162,6 @@ if [[ -d ~/.easystroke ]]; then
|
|||||||
rsync -ah ~/.easystroke ~/old_dat/
|
rsync -ah ~/.easystroke ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# elvish
|
|
||||||
if [[ -d ~/.elvish ]]; then
|
|
||||||
rsync -ah ~/.elvish ~/old_dat/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# local folder
|
# local folder
|
||||||
if [[ -d ~/.local/share/applications ]]; then
|
if [[ -d ~/.local/share/applications ]]; then
|
||||||
rsync -ah ~/.local/share/applications/ ~/old_dat/.local/share/
|
rsync -ah ~/.local/share/applications/ ~/old_dat/.local/share/
|
||||||
@ -251,14 +234,12 @@ if [[ copy_firefox -eq 1 ]]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Copied folders
|
|
||||||
|
|
||||||
#copy single files
|
#copy single files
|
||||||
cp -r ~/configs/arch-config/.bashrc ~/
|
cp -r ~/configs/arch-config/.bashrc ~/
|
||||||
cp -r ~/configs/arch-config/.face ~/
|
cp -r ~/configs/arch-config/.face ~/
|
||||||
cp -r ~/configs/arch-config/.gtkrc-2.0 ~/
|
cp -r ~/configs/arch-config/.gtkrc-2.0 ~/
|
||||||
cp -r ~/configs/arch-config/.gitconfig ~/
|
cp -r ~/configs/arch-config/.gitconfig ~/
|
||||||
cp -r ~/configs/arch-config/.tmux.conf ~/
|
#cp -r ~/configs/arch-config/.tmux.conf ~/
|
||||||
cp -r ~/configs/arch-config/.xinitrc ~/
|
cp -r ~/configs/arch-config/.xinitrc ~/
|
||||||
cp -r ~/configs/arch-config/.kopiaignore ~/
|
cp -r ~/configs/arch-config/.kopiaignore ~/
|
||||||
echo Copied files
|
echo Copied files
|
||||||
@ -275,6 +256,8 @@ cp -r ~/configs/arch-config/scripts/ ~/
|
|||||||
#copy stuff to /etc
|
#copy stuff to /etc
|
||||||
sudo cp -r ~/configs/arch-config/etc /
|
sudo cp -r ~/configs/arch-config/etc /
|
||||||
|
|
||||||
|
echo Copied folders
|
||||||
|
|
||||||
# NOTE Distro specific stuff
|
# NOTE Distro specific stuff
|
||||||
distro=$(cat /etc/*-release | grep "^ID=")
|
distro=$(cat /etc/*-release | grep "^ID=")
|
||||||
if [ "$distro" == "ID=arcolinux" ]; then
|
if [ "$distro" == "ID=arcolinux" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user