From 7955b24be6442b9fb6054373476dfb98098d0b2c Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sat, 7 Nov 2015 14:07:57 -0800 Subject: [PATCH] Cleanup broken symlinks at end of setup. --- install.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install.sh b/install.sh index cdfa69b..a2d08bb 100755 --- a/install.sh +++ b/install.sh @@ -204,6 +204,12 @@ function echo_pref { echo "$1=\${$1:-${!1}}" } +function cleanup { + source ${BASEDIR}/dotfiles/zshrc.d/prune-broken-symlinks.zsh + prune-broken-symlinks ${HOME}/.zshrc.d + prune-broken-symlinks ${HOME}/bin +} + # Setup variables read_saved_prefs @@ -240,3 +246,4 @@ install_basic_dir "${BASEDIR}/bin" "${HOME}/bin" (( $MINIMAL )) || postinstall (( $INSTALL_KEYS )) && install_keys save_prefs +cleanup