Make more auto-friendly
This commit is contained in:
parent
714e3257c9
commit
e3c2d743dc
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Ŝarĝante…
Reference in New Issue