-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap
More file actions
executable file
·39 lines (34 loc) · 1.04 KB
/
bootstrap
File metadata and controls
executable file
·39 lines (34 loc) · 1.04 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
#!/usr/bin/env bash
set -e
if [ -z "$DOTFILES_PATH" ]; then
echo "DOTFILES_PATH is not set. Please set it to the path of your dotfiles dir"
exit 1
fi
sudo -v #ask password beforehand
source $DOTFILES_PATH/setup/generic/functions
case $1 in
terminal)
echo 'This will reset your terminal. Are you sure you want to to this? (y/n) '
read -p 'Answer: ' reply
if [[ $reply =~ ^[Yy]$ ]]
then
install_dependencies
install_vim
source $DOTFILES_PATH/setup/generic/config/git.sh
source $DOTFILES_PATH/setup/generic/config/zsh.sh
source $DOTFILES_PATH/setup/generic/config/tmux.sh
fi
;;
dev_deps)
# Install coding dependencies
read -p "Installer les dependances de dev (Y/n)?" dev_deps
dev_deps=${dev_deps:-Y}
if [ "$dev_deps" != "${dev_deps#[Yy]}" ] ;then
install_docker
install_dev_dependencies
fi
;;
*)
echo "boostrap: [terminal|dev_deps]"
;;
esac