Compare commits

..

3 commits

Author SHA1 Message Date
Brent Schroeter
8761446775 pre-install golang 2026-03-29 22:18:51 -07:00
Brent Schroeter
1f782ea45f add convenience script for local setup 2026-03-29 22:16:00 -07:00
Brent Schroeter
b355cb8d70 tune editor config 2026-03-29 22:15:30 -07:00
6 changed files with 67 additions and 2 deletions

View file

@ -12,7 +12,7 @@ RUN yes | unminimize
RUN apt-get install -y gpg sudo wget curl build-essential software-properties-common libssl-dev pkg-config libglew-dev git fish RUN apt-get install -y gpg sudo wget curl build-essential software-properties-common libssl-dev pkg-config libglew-dev git fish
# Install handy developer tools. # Install handy developer tools.
RUN apt-get install -y iputils-ping postgresql-client git-delta jq sqlite3 vim pipx ripgrep openssh-server RUN apt-get install -y iputils-ping postgresql-client git-delta golang jq sqlite3 vim pipx ripgrep openssh-server
# Install mise-en-place for project (and in some cases global) tooling management. # Install mise-en-place for project (and in some cases global) tooling management.
RUN install -dm 755 /etc/apt/keyrings RUN install -dm 755 /etc/apt/keyrings
@ -45,6 +45,9 @@ RUN mise x -- cargo binstall -y cargo-nextest sqlx-cli
RUN curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh | bash RUN curl -fsSL https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/bootstrap.sh | bash
RUN fish -c 'fish_add_path /home/$USERNAME/.local/bin' RUN fish -c 'fish_add_path /home/$USERNAME/.local/bin'
# Finish Go setup.
RUN fish -c 'fish_add_path /home/$USERNAME/go/bin'
# Copy Helix configurations. # Copy Helix configurations.
# It seems there's a bug in `apple/container`'s COPY implementation that fails # It seems there's a bug in `apple/container`'s COPY implementation that fails
# to recursively copy directory contents from the host, so we point it to each # to recursively copy directory contents from the host, so we point it to each

View file

@ -4,6 +4,7 @@
[core] [core]
pager = delta pager = delta
editor = hx
[interactive] [interactive]
diffFilter = delta --color-only diffFilter = delta --color-only

View file

@ -1,6 +1,7 @@
theme = "yo_dracula" theme = "yo_dracula"
[editor] [editor]
bufferline = "multiple"
rulers = [80, 100] rulers = [80, 100]
true-color = true true-color = true
@ -44,5 +45,7 @@ right = [
v = [":vs", "file_picker"] v = [":vs", "file_picker"]
s = [":sp", "file_picker"] s = [":sp", "file_picker"]
w = ":w" w = ":w"
q = ":q" q = ":buffer-close"
l = ":buffer-next"
h = ":buffer-previous"
space = "rotate_view" space = "rotate_view"

View file

@ -1 +1,5 @@
node_modules node_modules
.venv
dist
target
zig-out

View file

@ -1,5 +1,6 @@
[language-server.rust-analyzer.config] [language-server.rust-analyzer.config]
check.command = "clippy" check.command = "clippy"
rustfmt.extraArgs = ["+nightly"]
[language-server.deno] [language-server.deno]
command = "deno" command = "deno"

53
local-install.fish Normal file
View file

@ -0,0 +1,53 @@
# Install dotfiles (and optionally tools) to the current macOS host,
# for example when provisioning within a VM.
set -f DEFAULT_FULL_NAME 'Brent Schroeter'
argparse -S 'email=' 'full-name=' install-mise overwrite -- $argv
if not set -ql _flag_full_name
set -f _flag_full_name "$DEFAULT_FULL_NAME"
end
if not set -ql _flag_email
echo '--email is required for VCS configuration' >&2
return 1
end
mkdir -p ~/.config
if set -ql _flag_overwrite; or not test -e ~/.gitconfig
cp ./assets/git/gitconfig ~/.gitconfig
sed -i '' "s/{{ VCS_EMAIL }}/$_flag_email/" ~/.gitconfig
sed -i '' "s/{{ VCS_NAME }}/$_flag_full_name/" ~/.gitconfig
else
echo 'Git config already exists. Use --overwrite to replace it.' >&2
end
if set -ql _flag_overwrite; or not test -e ~/.config/jj/config.toml
mkdir -p ~/.config/jj
cp ./assets/jj/config.toml ~/.config/jj/
sed -i '' "s/{{ VCS_EMAIL }}/$_flag_email/" ~/.config/jj/config.toml
sed -i '' "s/{{ VCS_NAME }}/$_flag_full_name/" ~/.config/jj/config.toml
else
echo 'JJ config already exists. Use --overwrite to replace it.' >&2
end
if set -ql _flag_overwrite; or not test -e ~/.config/helix
if test -e ~/.config/helix
rm -r ~/.config/helix
end
cp -r ./assets/helix ~/.config/helix
else
echo 'Helix configs already exist. Use --overwrite to replace them.' >&2
end
if set -ql _flag_install_mise
brew install mise
if set -ql _flag_overwrite; or not test -e ~/.config/mise/config.toml
mkdir -p ~/.config/mise
cp ./assets/mise/config.toml ~/.config/mise/
else
echo 'Mise config already exists. Use --overwrite to replace it.' >&2
end
mise install
end