-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbootstrap.sh
More file actions
41 lines (29 loc) · 1009 Bytes
/
Copy pathbootstrap.sh
File metadata and controls
41 lines (29 loc) · 1009 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
38
39
40
41
###############################
# Bootstrap Agent Environments
###############################
# mise setup
curl https://mise.run | sh
mise trust
export MISE_ENV=dev,extras
mise install
source <(mise activate)
# zsh and ssl cert stuff for localias
sudo apt update && sudo apt install -y zsh libnss3-tools
# mise must be setup first!
echo 'eval "$(mise activate bash)"' >> ~/.bashrc
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc
cat << 'EOF' >> ~/.bashrc
###################################
# Mise & Direnv Setup
# Assumes `mise use -g direnv@latest just@latest`
###################################
# mise first, then direnv, to ensure paths are set correctly before direnv takes a snapshot of env
eval "$(mise activate bash)"
eval "$(direnv hook bash)"
# nice to haves, like tab justfile completion
eval "$(just --completions $(basename "$SHELL"))"
###################################
# End Mise & Direnv Setup
###################################
EOF
# just docker_up w/docker login information?