This repository was archived by the owner on Nov 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·62 lines (55 loc) · 1.59 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·62 lines (55 loc) · 1.59 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Copy the dotfiles
echo -n "copying dotfiles... "
cp .vimrc ~/
cp .tmux.conf ~/
cat .bashrc >> ~/.bashrc
cp .Xdefaults ~/
cp .printActiveIP.sh ~/
mkdir ~/bin/ -p
cp google ~/bin/
cp calendar ~/bin/
echo "Success! [dotfiles copied]"
echo
# i3 setup
# Setup git config
echo -n "Setup i3 settings? [y/n] "
read i3_conf
i3_conf=$(echo "$i3_conf" | awk '{print tolower($0)}')
if [ "y" == "$i3_conf" ]; then
echo "setting up i3 configs..."
mkdir ~/.config/i3/ -p # i3 config directory
cp 1.jpg ~/.config/i3 # starter wallpaper
cp config ~/.config/i3 # i3 core config
cp randWallPaper.sh ~/bin # wallpaper randomizer
cp .i3status.conf ~/ # status conf
cp mac.conf /etc/NetworkManager/conf.d/ # mac address randomization
echo "Success! [i3 config copied]"
echo
fi
# Install any required dependencies
echo -n "install applications from dependencies.sh? [y/n] "
read install
install=$(echo "$install" | awk '{print tolower($0)}')
if [ "y" == "$install" ]; then
echo -n "installing dependencies... "
/bin/bash dependencies.sh
echo "Success! [dependencies installed]"
echo ""
fi
# Setup git config
echo -n "Setup git settings? [y/n] "
read git_conf
git_conf=$(echo "$git_conf" | awk '{print tolower($0)}')
# Git config
if [ "y" == "$git_conf" ]; then
echo -n "Enter user.name: "
read name
echo ""
echo -n "Enter user.email: "
read email
echo ""
git config --global user.name "$name"
git config --global user.email "$email"
echo "Success! [git settings setup]"
fi