-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·62 lines (48 loc) · 1.49 KB
/
install.sh
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
#!/bin/bash
# Copy the default config file if not present already
############
# Includes #
############
if [ ! -f ./install_config ];
then
cp ./install_config.dist ./install_config
fi
. ./env
. ./install_config
. $DOTFILES/colors
################
# Presentation #
################
echo -e "
${yellow}
___________________________
| |
| Welcome to Awkan dotfiles |
|___________________________|
"
echo -e "${yellow}!!! ${red}WARNING${yellow} !!!"
echo -e "${light_red}This script will delete all your configuration files!"
echo -e "${light_red}Use it at your own risks."
if [ $# -ne 1 ] || [ "$1" != "-y" ];
then
echo -e "${yellow}Press a key to continue...\n"
read key;
fi
###########
# INSTALL #
###########
# Uninstall everything
# TODO: Let the choice to backup :D
. $DOTFILES/uninstall.sh
# Install
. $DOTFILES/_install/install-fonts.sh
. $DOTFILES/_install/install-xorg-server.sh
command -v "composer" >/dev/null && . $DOTFILES/_install/install-composer.sh
command -v "dunst" >/dev/null && . $DOTFILES/_install/install-dunst.sh
command -v "i3" >/dev/null && . $DOTFILES/_install/install-i3.sh
command -v "git" >/dev/null && . $DOTFILES/_install/install-git.sh
command -v "nvim" >/dev/null && . $DOTFILES/_install/install-nvim.sh
command -v "urxvt" >/dev/null && . $DOTFILES/_install/install-urxvt.sh
# TODO : Remove vim usage
command -v "vim" >/dev/null && . $DOTFILES/_install/install-vim.sh
command -v "zsh" >/dev/null && . $DOTFILES/_install/install-zsh.sh