-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
executable file
·44 lines (35 loc) · 1.19 KB
/
init.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
41
42
43
44
#!/usr/bin/env sh
set -e
# Download shm if it doesn't exist
if ! command -v "shm" >/dev/null; then
curl -sSL https://raw.githubusercontent.com/erikjuhani/shm/main/shm.sh | sh
if ! command -v "shm" >/dev/null; then
printf "%s" "Initialize PATH for shm, then run this script again"
exit 2
fi
fi
if [ ! -f "${HOME}/.todo.md" ]; then
cp ./.todo.template.md "${HOME}/.todo.md"
fi
# tmux session manager
shm get erikjuhani/tm
# personal logging and journal cli util
shm get erikjuhani/ql
# advent of code cli util
shm get erikjuhani/hop
# git fixup util
shm get erikjuhani/git-fixup
# personal task cli util
shm get erikjuhani/tomb
if ! command -v "brew" >/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# TODO: Figure out a way to determine when we are installing from scratch
# Maybe an env var.
# Only run this if we are installing from scratch!
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/erikjuhani/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
brew bundle
# rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fish -c "fisher install jorgebucaran/nvm.fish"