Something went wrong. Try again.
A personal collection of dotfiles and scripts for syncing settings across machines.
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031#!/bin/zshset -eset -x
# server-only symlinks: justfile, agents skills, .pi.# NixOS already provides mise, bun — this script wires the dotfiles# config into ~/.config/just/ and into ~/.agents/skills, ~/.pi.## assumes the working directory is the dotfiles repo root (just sets it# automatically when invoked via `just link-server`).## uses ${PWD} (parameter expansion) and `ln -sfn` (GNU) so this works on# Linux. the macOS bin/link.sh uses `$(PWD)` and `ln -sfh` (zsh-only) but# those don't work on NixOS where zsh has no `PWD` builtin and GNU ln has# no `-h` flag.
# link the justfile to the global justfile location so `just --global-justfile`mkdir -p ~/.config/justln -sfn "${PWD}/justfile" ~/.config/just/justfile
# setup skills linkmkdir -p ~/.agentsln -sfn "${PWD}/skills" ~/.agents/skills
# link .pi for some extensions; -n keeps `ln` from following an existing# symlink at the target (would otherwise nest .pi/.pi inside the old symlink)ln -sfn "${PWD}/.pi" ~/.pi
# link entire folder to ~/.dotfiles (handy for absolute-path references)ln -sfn "${PWD}" ~/.dotfiles