-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
46 lines (39 loc) · 1010 Bytes
/
install
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
#!/bin/bash
echo "Installing dots..."
git clone https://github.com/Harmelodic/dots.git "$HOME/dots" -q
cp "$HOME/dots/vars.example" "$HOME/dots/vars"
if [[ "$(uname)" =~ "Darwin" ]]; then
{
echo ""
echo "# dots"
echo "source ~/dots/rc"
} >> "$HOME/.bash_profile"
{
echo ""
echo "# dots"
echo "source ~/dots/rc"
} >> "$HOME/.zshrc"
elif [[ "$(uname)" =~ "Linux" ]]; then
{
echo ""
echo "# dots"
echo "source ~/dots/rc"
} >> "$HOME/.bashrc"
{
echo ""
echo "# dots"
echo "source ~/dots/rc"
} >> "$HOME/.zshrc"
else
echo ""
echo "ERROR! Unsupported System: $(uname)"
echo "Please add the following line to your .bashrc / .bash_profile / .zshrc file in your home directory:"
echo ""
echo "source ~/dots/rc"
echo ""
fi
echo "Done. - Terminal refresh required";
echo ""
echo "Set up your personal dots-related vars by editing:"
echo "$HOME/dots/vars"
echo ""