-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
33 lines (28 loc) · 1.63 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
#!/bin/bash
function print { echo "\033[1;32m=> $1\033[0m"; }
function msg_checking { echo "\033[1;32m=> $1 ✔\033[0m"; }
function msg_installing { echo "\033[1;33m==> $1 [updating] ✔\033[0m"; }
function msg_install { echo "\033[1;33m==> $1 [installing]: $ $2\033[0m"; }
function msg_ok { echo "\033[1;32m==> $1 installed ✔\033[0m"; }
function msg { echo "\033[0;32m$1\033[0m"; }
function msg_alert { echo "\033[1;31m✖ $1 ✖\033[0m"; }
msg ' __ __ __ __ _____ ______ ______ ______ __ __ ______ ______ '
msg '/\ "-./ \ /\ \_\ \ /\ __-. /\ __ \ /\__ _\ /\ ___\ /\ \ /\ \ /\ ___\ /\ ___\ '
msg '\ \ \-./\ \ \ \____ \ \ \ \/\ \ \ \ \/\ \ \/_/\ \/ \ \ __\ \ \ \ \ \ \____ \ \ __\ \ \___ \ '
msg ' \ \_\ \ \_\ \/\_____\ \ \____- \ \_____\ \ \_\ \ \_\ \ \_\ \ \_____\ \ \_____\ \/\_____\ '
msg ' \/_/ \/_/ \/_____/ \/____/ \/_____/ \/_/ \/_/ \/_/ \/_____/ \/_____/ \/_____/ '
msg ' '
# -- Dotfiles
if [[ -d "$HOME/.dotfiles" ]]; then
msg_checking "dotfiles"
else
msg_install "dotfiles" "git clone https://github.com/andrevvalle/dotfiles.git $HOME/.dotfiles"
git clone https://github.com/andrevvalle/dotfiles.git $HOME/.dotfiles
fi
# -- Installers ----------------------------------------------------------------
sh $HOME/.dotfiles/brew/global.sh
sh $HOME/.dotfiles/node/global.sh
sh $HOME/.dotfiles/git/global.sh
sh $HOME/.dotfiles/ruby/global.sh
sh $HOME/.dotfiles/zsh/global.sh
sh $HOME/.dotfiles/softwares/install.sh