From 8c278ce7d7f22486fcbb3d9eed826c49b690b895 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 10 Apr 2014 19:52:53 +0100 Subject: Install: simplify launchagent installation --- install | 9 ++++----- 1 file 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 -- cgit 1.4.1