-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (28 loc) · 1016 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
#!/bin/bash
# Install brew command
if ! command -v brew >/dev/null; then
echo "Installing Homebrew ..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
export PATH="/usr/local/bin:$PATH"
fi
if ! command -v stow >/dev/null; then
echo 'Install stow'
brew install stow
fi
echo 'Link dotfiles'
stow dev executables git tmux xdg_config terminfo
# Install apps & commands via brew
brew bundle install --global
# Install necessary python modules
pip3 install --user --requirement requirements.txt
# TODO: Install terminfo from Alacritty
curl https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info --output alacritty.info --silent
sudo tic -e alacritty,alacritty-direct alacritty.info
rm alacritty.info
# Switch to fish shell
if [[ -x /usr/local/bin/fish ]]; then
sudo bash -c "echo '/usr/local/bin/fish' >> /etc/shells"
chsh -s /usr/local/bin/fish
/usr/local/bin/fish -c 'fisher'
fi
# TODO: Install tpm as a git submodule