summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-04-10 19:52:53 +0100
committerAlan Pearce2014-04-10 19:52:53 +0100
commit8c278ce7d7f22486fcbb3d9eed826c49b690b895 (patch)
tree041e3a5d40db8d8d900a6af96e55b0807ba2c6ea
parent4cd3145a5447154c2836580a004f374a0af3600f (diff)
downloaddotfiles-8c278ce7d7f22486fcbb3d9eed826c49b690b895.tar.lz
dotfiles-8c278ce7d7f22486fcbb3d9eed826c49b690b895.tar.zst
dotfiles-8c278ce7d7f22486fcbb3d9eed826c49b690b895.zip
Install: simplify launchagent installation
-rwxr-xr-xinstall9
1 files changed, 4 insertions, 5 deletions
diff --git a/install b/install
index d3eaf06..20e72e5 100755
--- a/install
+++ b/install
@@ -15,11 +15,6 @@ then
 	git clone git://github.com/alanpearce/dotfiles.git $target
 fi
 
-if [[ -d ~/Library/LaunchAgents ]]
-then
-	ln -sf $target/launchagents/* ~/Library/LaunchAgents
-fi
-
 install-dot () {
 	if [[ "$1" != . && ! -d $1 ]]
 	then
@@ -39,6 +34,10 @@ install-dot $target/.git/hooks/ $target/git-hooks/*
 install-dot .emacs.d/ $target/emacs/{init.el{,c},elisp}
 install-dot . $target/^install(.) $target/zsh/fasdrc
 install-dot .ssh/ $target/ssh/*
+if [[ -d ~/Library/LaunchAgents ]]
+then
+	install-dot ~/Library/LaunchAgents $target/launchagents/*
+fi
 
 ln -sf $target/zsh/environment.zsh .zshenv
 ln -sf $target/zsh/interactive.zsh .zshrc