-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·26 lines (17 loc) · 918 Bytes
/
install.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
#!/usr/bin/env bash
# This script is for configuring GitHub Codespaces.
# It does not set up the entire repository for local Mac use.
# Install some dependencies
curl -sS https://webinstall.dev/delta | bash
curl -sS https://starship.rs/install.sh | sh -s -- -y
RIPGREP_VERSION=$(curl -s "https://api.github.com/repos/BurntSushi/ripgrep/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+')
curl -Lo ripgrep.deb "https://github.com/BurntSushi/ripgrep/releases/latest/download/ripgrep_${RIPGREP_VERSION}_amd64.deb"
apt install -y ./ripgrep.deb
rm -rf ripgrep.deb
# Symlink dotfiles
dotfiles_dir=$(dirname "$(readlink -f "$0")")
$dotfiles_dir/bin/symlink-all.sh
ln -s /workspaces/.codespaces/.persistedshare/dotfiles ~/dotfiles
# Edit with VS Code
echo "export EDITOR='code --wait'" >> ~/dotfiles/secrets/codespace_overrides.sh
echo "export GIT_EDITOR='code --wait'" >> ~/dotfiles/secrets/codespace_overrides.sh