From 975b347b7206a0e9caeeea8349e4765b4db654f9 Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Fri, 16 Aug 2013 15:42:56 +0200 Subject: Pre-up, post-up, pre-down, and post-down hooks These are programs that, if they exist, will run before or after the syncronization/removal is run. Three use cases caused this: 1. The thoughtbot dotfiles will run a vundle installation set of commands after intitial synchronization. 2. I changed the location of `.bash_history` to `.bash/history` and wanted to move `.bash_history` to `.bash/history` after up to preserve existing history. 3. Moving from an existing old-style custom install script to `rcup` might require some cleanup; this happened in practice, and required a simple script. --- bin/lsrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/lsrc') diff --git a/bin/lsrc b/bin/lsrc index f7f4826..1ea2e2c 100755 --- a/bin/lsrc +++ b/bin/lsrc @@ -140,7 +140,7 @@ is_metafile() { host_portion=`echo $1 | sed -e 's/host-.*/host-/'` tag_portion=`echo $1 | sed -e 's/tag-.*/tag-/'` - [ x$host_portion = 'xhost-' -o x$tag_portion = 'xtag-' ] + [ x$host_portion = 'xhost-' -o x$tag_portion = 'xtag-' -o "x$1" = "xhooks" ] } dotfiles_dir_excludes() { -- cgit v1.2.3