setting up a new wsl vm

This commit is contained in:
Matthew Ryan Dillon 2023-08-10 21:16:10 -04:00
parent 779cc9e007
commit 58ac026ff2
2 changed files with 22 additions and 8 deletions

View file

@ -5,6 +5,7 @@
```bash
# debian
sudo hostnamectl set-hostname $MY_HOSTNAME.local
# or edit /etc/hostname on wsl, since no systemd
# macos
sudo scutil --set HostName $MY_HOSTNAME.local
@ -13,17 +14,11 @@ sudo scutil --set ComputerName $MY_HOSTNAME
dscacheutil -flushcache # maybe reboot, too?
```
2) set the shell (linux-only):
2) set up the package manager and bootstrap dependencies:
```bash
# debian
chsh -s $(which zsh)
```
3) set up the package manager:
```bash
# debian - nothing to do here
sudo apt install curl zsh git
# macos
xcode-select --install
@ -31,6 +26,13 @@ xcode-select --install
# TODO: is there a reasonable unattended install workflow for macports?
```
3) set the shell (linux-only):
```bash
# debian
chsh -s $(which zsh)
```
4) install a patched font, [Anonymice Pro](https://www.nerdfonts.com/font-downloads). size 16 or 17, no anti-aliasing
5) install `age` private key from password manager into `~/.key.txt`

View file

@ -27,4 +27,16 @@ sudo port install \
wget \
zellij \
zsh
{{ else if eq .chezmoi.hostname "spleen" -}}
#!/bin/sh
sudo apt install \
ripgrep \
tmux \
tree \
wget \
-y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o /rustup.sh && chmod u+x /rustup.sh && /rustup.sh -y
git clone https://github.com/helix-editor/helix.git /helix
export PATH=$PATH:$HOME/.cargo/bin && cargo install --path helix-term && hx --grammar fetch && hx --grammar build
{{ end }}