Make more auto-friendly

This commit is contained in:
Jaidyn Ann 2021-02-14 21:01:57 -06:00
parent 714e3257c9
commit e3c2d743dc
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,10 @@ $ spacetemplate templatefolder folder
There are no arguments― it'll just apply the template folder to the folder. There are no arguments― it'll just apply the template folder to the folder.
I've found it's a great pair to Filer! You can make a location rule, e.g.,
for any subdirectories of a folder, that'll apply that folder's template
automatically. Filer's a great program c:
======================================== ========================================
TEMPLATES TEMPLATES

View File

@ -118,6 +118,9 @@ if test -z "$TEMPLATE" -o -z "$TARGET"; then help; fi
if test ! -e "$TEMPLATE" -o ! -e "$TARGET"; then help; fi if test ! -e "$TEMPLATE" -o ! -e "$TARGET"; then help; fi
TEMP="$(mktemp)" TEMP="$(mktemp)"
notify --title SpaceTemplate "Applying template to ${TARGET}…"
apply_template "$TEMPLATE" "$TARGET" apply_template "$TEMPLATE" "$TARGET"
notify --title SpaceTemplate "Template applied"
rm "$TEMP" rm "$TEMP"