-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap-all.sh
More file actions
executable file
·61 lines (48 loc) · 1.61 KB
/
bootstrap-all.sh
File metadata and controls
executable file
·61 lines (48 loc) · 1.61 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
#!/usr/bin/env bash
# Bootstrap SH
set -e
echo "> Starting Bootstrap"
if [ -n "`$SHELL -c 'echo $ZSH_VERSION'`" ]
then
echo "> Running inside zsh."
else
echo "> Can't be loaded from: $SHELL. You need to run zsh instead."
exit
fi
if [ -f "$HOME/dotfiles/checkpoints/completed" ]
then
echo "> Bootstrap already completed; exiting"
exit
fi
if [[ "$(which brew)" == "" ]] && [[ "$(uname)" == "Darwin" ]]
then
echo "> It seems brew is not available or it's not installed"
echo "> Installing Homebrew"
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
export PATH=/opt/homebrew/bin:$PATH
/opt/homebrew/bin/brew bundle --file=$HOME/dotfiles/brew/Brewfile || true
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
export DOTFILES_HOME=$HOME/dotfiles
bash -c $HOME/dotfiles/self/setup.sh
bash -c $HOME/dotfiles/prezto/setup.sh
if [[ "$(uname)" == "Darwin" ]]
then
bash -c $HOME/dotfiles/macos/setup.sh
bash -c $HOME/dotfiles/brew/setup.sh
bash -c $HOME/dotfiles/macos/post-brew.sh
bash -c $HOME/dotfiles/coreutils/setup.sh
else
bash -c $HOME/dotfiles/linux/setup.sh
# bash -c $HOME/dotfiles/linux/zsh-highlight-setup.sh
fi
bash -c $HOME/dotfiles/python/setup.sh
bash -c $HOME/dotfiles/git/setup.sh
bash -c $HOME/dotfiles/alacritty/setup.sh
bash -c $HOME/dotfiles/starship/setup.sh
bash -c $HOME/dotfiles/asdf/setup.sh
bash -c $HOME/dotfiles/sdkman/setup.sh
bash -c $HOME/dotfiles/neovim/setup.sh
bash -c $HOME/dotfiles/self/set-default-shell.sh
bash -c $HOME/dotfiles/self/checkpoint-completed.sh
echo "> You must source $HOME/.profile"