Skip to content

Commit

Permalink
mod dir progress
Browse files Browse the repository at this point in the history
  • Loading branch information
mantas6 committed Jan 12, 2025
1 parent c1abb68 commit 3a8ed5e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions mods/base
1 change: 1 addition & 0 deletions mods/test-mod/test-mod-file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some text
3 changes: 2 additions & 1 deletion stow
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ source=$(dirname "$(readlink -f "$0")")
# Create base directories so that stow wouldn't link them directly
grep -v '^\(#\|$\)' "$source/dirs.conf" | xargs -I {} mkdir -pv "$HOME/{}"

stow --dir="$source" --target="$HOME" --verbose "$@" base
stow --dir="$source" --target="$HOME" --verbose "$@" base
# stow --dir="$source/mods" --target="$HOME" --verbose "$@" $(./stow-mods-ls)
15 changes: 15 additions & 0 deletions stow-mods-ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh
# List stow modules for the current system

mods='base'

case "$(uname -n)" in
'example-host')
mods="$mods example"
;;
*)
mods="$mods test-mod"
;;
esac

echo "$mods"

0 comments on commit 3a8ed5e

Please sign in to comment.