For any nontrivial ZenPacks we recommend maintaining the source code somewhere other than $ZENHOME/ZenPacks. There are a couple reasons for this:
-
Performing a "zenpack --remove" delete the ZenPack's directory from $ZENHOME/ZenPacks. If you do not have the files copied in another location you can easily lose all or some of your work.
-
If your ZenPack source is maintained in a version control system it is frequently easier to keep the code within a larger checkout directory elsewhere on the filesystem.
To move a ZenPack source directory out of $ZENHOME/ZenPacks you can simply copy the directory to the new location then run install again using the --link option. This will remove the $ZENHOME/ZenPacks/<YourZenPackId> directory.
cp -r $ZENHOME/ZenPacks/<YourZenPackId> <SomeOtherDirectory> zenpack --link --install <SomeOtherDirectory>/<YourZenPackId>