-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·36 lines (28 loc) · 1018 Bytes
/
install.sh
File metadata and controls
executable file
·36 lines (28 loc) · 1018 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
#!/bin/sh
# CODESPACES INSTALL SCRIPT
set -e # -e: exit on error
printf 'Removing broken Yarn apt repo if present...\n'
sudo rm -f /etc/apt/sources.list.d/yarn.list
printf 'Installing apt-get packages...\n'
sudo apt-get update -y
sudo apt-get install -y \
fd-find \
fzf \
gh \
jq \
wget \
git \
zsh-autosuggestions \
zsh-syntax-highlighting
printf 'Installing starship...\n'
curl -sS https://starship.rs/install.sh | sh -s -- -y
printf 'Installing jj...\n'
gh release download --repo jj-vcs/jj --pattern '*x86_64-unknown-linux-musl.tar.gz' --dir /tmp --clobber
sudo tar xzf /tmp/jj-*-x86_64-unknown-linux-musl.tar.gz -C /usr/local/bin --strip-components=1 --wildcards '*/jj'
rm -f /tmp/jj-*-x86_64-unknown-linux-musl.tar.gz
printf 'Setting zsh as shell\n'
if [ -n "$(grep $(whoami) /etc/passwd)" ] && ! grep -q "$(whoami).*/bin/zsh" /etc/passwd; then
sudo chsh -s /bin/zsh $(whoami)
fi
printf 'Installing dotfiles via chezmoi...\n'
sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply jfuchs