-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit_dotfiles.sh
34 lines (29 loc) · 920 Bytes
/
init_dotfiles.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
#!/bin/bash
echo "installing latest chezmoi version"
#############################################
if ! command -v chezmoi &> /dev/null
then
sh -c "$(curl -fsLS get.chezmoi.io)"
fi
#############################################v
echo "installing zsh"
#############################################
if command -v brew &> /dev/null
then
brew install zsh
fi
if command -v apt &> /dev/null
then
apt install zsh
fi
#############################################
echo "initializing ohmyzsh (zsh config manager)"
#############################################
if [[ ! -d "$HOME/.oh-my-zsh/" ]]; then
bash -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
#############################################
echo "initializing chezmoi"
#############################################
bin/chezmoi init https://github.com/Haagy/dotfiles.git
#############################################