Krolyxon
Commit 136d805

Branches

Refs →

aurora136d805

stow: target ~ via .stowrc so the repo can live anywhere

Fixes #2
Author
krolyxon
Date
2026-11-04 18:41 +0530
Parent
f4371d9
Commit
136d80534caae375949d224c81de1d8d53051877

+10 −6

7 files changed

  1. M .config/qt5ct/qt5ct.conf +1 −1
  2. M .config/qt6ct/qt6ct.conf +1 −1
  3. M .config/shell/aliasrc +1 −1
  4. M .stow-local-ignore +1 −0
  5. A .stowrc +2 −0
  6. M README.md +2 −1
  7. M install.sh +2 −2
M .config/qt5ct/qt5ct.conf View
@@ -1,5 +1,5 @@
11 # Colours: matugen writes ~/.cache/matugen/qt-colors.conf on every wallpaper change.
2−# Edit this file in ~/aurora: saving from the qt5ct GUI replaces the stow symlink.
2+# Edit this file in the aurora repo: saving from the qt5ct GUI replaces the stow symlink.
33 [Appearance]
44 color_scheme_path=/home/k/.cache/matugen/qt-colors.conf
55 custom_palette=true
M .config/qt6ct/qt6ct.conf View
@@ -1,5 +1,5 @@
11 # Colours: matugen writes ~/.cache/matugen/qt-colors.conf on every wallpaper change.
2−# Edit this file in ~/aurora: saving from the qt6ct GUI replaces the stow symlink.
2+# Edit this file in the aurora repo: saving from the qt6ct GUI replaces the stow symlink.
33 [Appearance]
44 color_scheme_path=/home/k/.cache/matugen/qt-colors.conf
55 custom_palette=true
M .config/shell/aliasrc View
@@ -26,7 +26,7 @@ alias \
2626
2727 alias on="tmux new-session -s notes -c ~/dox/brain 'nvim .'"
2828 alias todo="nvim ~/dox/brain/Todo.md"
29−alias dots="cd ~/aurora/"
29+alias dots='cd "$(dirname "$(readlink -f ~/.config/shell/aliasrc)")/../.."' # wherever the repo lives
3030 alias cava="cava -p ~/.cache/matugen/cava" # colours from matugen
3131
3232 # Colorize commands when possible.
M .stow-local-ignore View
@@ -7,3 +7,4 @@ install.sh
77 LICENSE
88 CLAUDE\.md
99 glyph-rice
10+\.stowrc
A .stowrc View
@@ -0,0 +1,2 @@
1+--target=~
2+--no-folding
M README.md View
@@ -65,7 +65,8 @@ cd ~/aurora
6565 ./install.sh --yes # pre-select the default packages, no pickers
6666 ./install.sh --check # only compare installed packages with the lists, changes nothing
6767 ```
68−Clone it straight into your home directory (`~/aurora`): stow links into the parent directory.
68+Clone it anywhere (e.g. `~/dev/aurora`): the repo's `.stowrc` points stow at `$HOME`. Re-stow by hand with `stow .`
69+from the repo; to move an existing checkout, `stow -D .` first, move it, then `stow .` again.
6970
7071 ## Packages
7172 The lists live in `packages/*.txt`: one package per line, `#` for comments, and a trailing `!` means
M install.sh View
@@ -279,7 +279,7 @@ Proceed with system configuration (stow, shell)?"; then
279279 ## Stow dotfiles ##
280280 ###################
281281 log INFO "Detecting conflicts..."
282− mapfile -t conflicts < <(stow . --no-folding -nv 2>&1 | \
282+ mapfile -t conflicts < <(stow -t "$HOME" . --no-folding -nv 2>&1 | \
283283 sed -n 's/.*existing target \(.*\) since neither.*/\1/p')
284284
285285 if ((${#conflicts[@]} == 0)); then
@@ -302,7 +302,7 @@ Proceed with system configuration (stow, shell)?"; then
302302 log INFO "Backups are in $BACKUP_DIR"
303303 fi
304304
305− stow . --no-folding \
305+ stow -t "$HOME" . --no-folding \
306306 && log SUCCESS "Dotfiles stowed successfully" \
307307 || log ERROR "Stow failed"
308308