From d87f35f675e774bcab14db580795ebbc9c86d5d4 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 1 Jun 2013 14:39:28 +0100 Subject: Installer: Fix relative paths --- install | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install b/install index 8d6ae180..0fa5859e 100755 --- a/install +++ b/install @@ -48,28 +48,28 @@ then fi fasd_cache=~/.zsh/cache/fasd-init-zsh -if [[ ! -s "$fasd_cache" || zsh/functions/fasd -nt "$fasd_cache" ]]; then - zsh/functions/fasd/fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache" +if [[ ! -s "$fasd_cache" || dotfiles/zsh/functions/fasd -nt "$fasd_cache" ]]; then + dotfiles/zsh/functions/fasd/fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache" fi autoload -U zrecompile local -a zfiles zfiles=( - zsh/functions/fasd/fasd + dotfiles/zsh/functions/fasd/fasd $fasd_cache - zsh/zshrc - zsh/zshrc_${HOST%%.*} + dotfiles/zsh/zshrc + dotfiles/zsh/zshrc_${HOST%%.*} ) if [[ -e /usr/bin/emerge ]]; then - zfiles+=zsh/zshrc_gentoo + zfiles+=dotfiles/zsh/zshrc_gentoo fi if [[ $OSTYPE == freebsd* ]]; then - zfiles+=zsh/zshrc_freebsd + zfiles+=dotfiles/zsh/zshrc_freebsd fi zrecompile -p -R ~/.zshrc.zwc $zfiles -for fp in zsh/functions/*(/); do +for fp in dotfiles/zsh/functions/*(/); do zrecompile -p $fp $fp/* done -- cgit 1.4.1