-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
executable file
·38 lines (28 loc) · 982 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
#!/bin/bash
echo "installing dotfiles"
if [ ! -x "$(command -v brew)" ]; then
echo "installing homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo "brewing all the things"
else
echo "homebrew already install! skipping..."
fi
source install/brew.sh
echo "installing fzf keybindings and completions..."
$(brew --prefix)/opt/fzf/install --all
echo "running stow (with --verbose=3)"
stow --verbose=3 -R alacritty bat git nvim ssh tmux zsh ideavim
echo "linking config dir"
ln -sv $(PWD)/config/* ~/.config
if [ ! -d "${HOME}/.dotfiles/tmux/.tmux/plugins/tpm" ]; then
echo "Add tmux plugin manager"
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
else
echo "tmux plugin manager already installed! skipping!"
fi
if [ "$(uname)" == "Darwin" ]; then
echo "updating OSX settings"
source install/osx.sh
fi
echo "configuring zsh as default shell"
chsh -s $(which zsh)