summaryrefslogtreecommitdiff
path: root/copy-all.sh
blob: b940c1e838f63ccbdf32fe6ecfbf5fc3ecf70664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

echo "WARNING: this will overwrite the config"
read -p "are you sure? (y/n): " answer
if [ "$answer" != "y" ]; then
    echo "Aborting."
    exit 1
fi

mkdir -p ~/.config
mkdir -p ~/.icons
mkdir -p ~/.themes
cp -rf ./config/ ~/.config/
cp -rf ./icons/ ~/.icons/
cp -rf ./themes/ ~/.themes/
mkdir -p ~/.local/bin/
cp -rf ./bin ~/.local/bin/
cp -rf ./home/ ~/
cp -f ./vimrc ~/.vimrc
cp -f ./nvimrc ~/.nvimrc
cp -f ./zshrc ~/.zshrc

rm ~/.config/nvim/init.vim
ln -s ~/.nvimrc ~/.config/nvim/init.vim

read -p "do you want (s)mall or (b)ig WM fonts?" answer
if [ "$answer" = "s" ]; then
  echo "small titlebars"
  ~/.config/openbox/fonts-small
else
  echo "big titlebars"
  ~/.config/openbox/fonts-big
fi