-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
37 lines (29 loc) · 861 Bytes
/
install.sh
File metadata and controls
37 lines (29 loc) · 861 Bytes
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
#!/bin/bash
echo "Starting install script, please grant sudo access..."
sudo -v
# Brew
which -s brew
if [[ $? != 0 ]] ; then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Stow
which -s stow
if [[ $? != 0 ]] ; then
echo "Installing stow..."
brew install stow
fi
echo "Cloning dotfiles..."
git clone https://github.com/hungps/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
git submodule update --init --recursive
stow .
echo "Installing Homebrew Bundle..."
brew bundle install --file=~/Brewfile;
echo "Setting up tmux...."
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
echo "Setting up fish shell...."
echo "$(which fish)" | sudo tee -a /etc/shells
chsh -s "$(which fish)"
echo "Setting scripts permission"
chmod +x ~/.dotfiles/bin/tmux-sessionizer