fix: properly-quoted install.sh + bashrc

This commit is contained in:
2026-05-20 21:42:08 +02:00
commit cbd75a2b62
4 changed files with 62 additions and 0 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Idempotent install — symlinks files from this repo into $HOME.
set -euo pipefail
SRC=$(cd "$(dirname "$0")" && pwd)
mkdir -p ~/.config
while IFS= read -r f; do
rel=${f#"$SRC/home/"}
mkdir -p "$HOME/$(dirname "$rel")"
ln -sf "$SRC/home/$rel" "$HOME/$rel"
done < <(find "$SRC/home" -mindepth 1 -type f)
echo "dotfiles linked from $SRC/home"