-
Notifications
You must be signed in to change notification settings - Fork 0
/
install
executable file
·32 lines (25 loc) · 994 Bytes
/
install
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
#!/usr/bin/env bash
set -euo pipefail
#
# install everything
#
# get Homebrew
if ! command -v brew &> /dev/null; then
if [[ "$(uname)" == 'Linux' ]]; then
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
/home/linuxbrew/.linuxbrew/bin/brew bundle install
/home/linuxbrew/.linuxbrew/bin/brew/opt/fzf/install
else
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle install
fi
fi
# symlink stuff
find . -mindepth 1 -type d -not -path "*/.git*" -not -path "./ignore*" | sed "s|^.|$HOME|g" | xargs mkdir -p
git ls-files -- ':!:README.md' ':!:Brewfile' ':!:install' | xargs -I % ln -sf "$PWD/%" "$HOME/%"
# install tpm
[[ ! -d ~/.tmux/plugins/tpm ]] && git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# make directory for personal repos
mkdir -p "$HOME/src/chriskim06"
# create empty file for secrets/tokens and local aliases
touch "$HOME/.private"