-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap-macos.sh
executable file
·66 lines (47 loc) · 1.96 KB
/
bootstrap-macos.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
62
63
64
65
66
#!/bin/zsh
# ========= check to be on zsh =========
if [[ $SHELL != *zsh ]]; then
echo "Please use this script on the zsh shell"
exit 1
fi
# ========= setup =========
echo "========= zsh start"
if ! [ -d ~/.oh-my-zsh ]; then
echo "========= Installing oh my zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
if ! [ -d ~/.oh-my-zsh/custom/themes/powerlevel10k ]; then
echo "========= Cloning theme"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k
fi
if ! [ -d ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions ]; then
echo "========= Cloning autosuggestions"
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
fi
if ! [ -d ~/.oh-my-zsh/custom/plugins/zsh-autocomplete ]; then
echo "========= Cloning autocomplete"
git clone --depth=1 https://github.com/marlonrichert/zsh-autocomplete.git ~/.oh-my-zsh/custom/plugins/zsh-autocomplete
fi
ln -sf ~/.dotfiles/zsh/zshrc ~/.zshrc
ln -sf ~/.dotfiles/zsh/p10k.zsh ~/.p10k.zsh
ln -sfn ~/.dotfiles/zsh/os ~/.oh-my-zsh/custom/os
echo "========= zsh done"
ln -sf ~/.dotfiles/git/gitconfig_mac ~/.gitconfig
echo "========= git done"
echo "========= tmux start"
if ! [ -d ~/.tmux/plugins/tpm ]; then
echo "========= cloning Tmux Plugin Manager"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
fi
ln -sf ~/.dotfiles/tmux/tmux.conf ~/.tmux.conf
echo "========= tmux done"
echo "========= nvim start"
if ! [ -d ~/.local/share/nvim/site/pack/packer ]; then
echo "========= Cloning packer"
git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
ln -sfn ~/.dotfiles/nvim ~/.config/nvim
echo "========= nvim done"
echo "========= karabiner start"
ln -sfn ~/.dotfiles/karabiner/karabiner.json ~/.config/karabiner/karabiner.json
echo "========= karabiner done"