summaryrefslogtreecommitdiff
path: root/etc/functions/off
diff options
context:
space:
mode:
Diffstat (limited to 'etc/functions/off')
-rwxr-xr-xetc/functions/off10
1 files changed, 8 insertions, 2 deletions
diff --git a/etc/functions/off b/etc/functions/off
index 85a62dd..c24b575 100755
--- a/etc/functions/off
+++ b/etc/functions/off
@@ -4,7 +4,7 @@
## License: WTFPL <http://sam.zoy.org/wtfpl>
autoload warn fdie
-typeset filesystem garbage
+typeset filesystem garbage file
typeset -a filesystems
typeset tune2fs
typeset -i force reboot simulate
@@ -48,7 +48,13 @@ if [[ $force != 1 && $hosts[$HOST] == *:server:* ]] {
}
if [[ -n $gone ]] {
- execute unisync with-all
+ for file in ~/packages/leave.d/etc/{_any,$gone}/*(N); {
+ if [[ ${file:e} == zsh ]] {
+ execute source $file
+ } else {
+ execute $file
+ }
+ }
}
if pgrep -x amarokapp &> /dev/null; then