-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·40 lines (32 loc) · 1009 Bytes
/
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
33
34
35
36
37
38
39
40
echo "========== INSTALLING tylerwillingham/dotfiles =========="
if command -v apt-get &> /dev/null; then
./linux-install.sh
else
./macos-install.sh
fi
if [ ! -d $HOME/.oh-my-zsh ]; then
echo "∙ Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi
echo "∙ Overriding $HOME/.zshrc"
ln -fs "$PWD/zshrc" "$HOME/.zshrc"
if [ ! -f "$HOME/.zshenv" ]; then
echo "✨ Initializing empty $HOME/.zshenv"
touch "$HOME/.zshenv"
fi
if command -v tmux &> /dev/null; then
echo "∙ Copying tmux configuration"
ln -fs "$PWD/tmux.conf" "$HOME/.tmux.conf"
else
echo "⚠️ tmux is not installed, skipping configuration"
fi
echo "∙ Overriding neovim config"
ln -fs "$PWD/nvim" "$HOME/.config/nvim"
# if ! command -v solargraph &> /dev/null; then
# echo "💎 Installing solargraph"
# sh -c "gem install solargraph"
# fi
# if ! command -v sorbet &> /dev/null; then
# echo "💎 Installing sorbet"
# sh -c "gem install sorbet"
# fi