From 69d699d0bc5900406ec654e4f2937e2053f06ed7 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Fri, 14 Sep 2012 12:30:08 -0700 Subject: [PATCH] Hardcode location of .yadr Occasionally it is slow on the find command. This code has no reason to be. --- zsh/aliases.zsh | 2 +- zsh/highlighting.zsh | 2 +- zsh/zshrc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 12acaa9..ba9b750 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -1,7 +1,7 @@ # Aliases in this file are bash and zsh compatible # Don't change. The following determines where YADR is installed. -yadr=`find -L ~ -type file -maxdepth 2 -name .yadr | head | sed 's:\.yadr\/::'` +yadr=$HOME/.yadr # YADR support alias yav='yadr vim-add-plugin' diff --git a/zsh/highlighting.zsh b/zsh/highlighting.zsh index 37da666..752671e 100644 --- a/zsh/highlighting.zsh +++ b/zsh/highlighting.zsh @@ -1 +1 @@ -source $yadr/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +source $HOME/.yadr/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/zsh/zshrc b/zsh/zshrc index 87061ca..96d535f 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -7,7 +7,7 @@ # ================================ # Don't change. The following determines where YADR is installed. -yadr=`find -L ~ -type file -maxdepth 2 -name .yadr | head | sed 's:\.yadr\/::'` +yadr=$HOME/.yadr # Source oh-my-zsh if it is installed. if [[ -d $HOME/.oh-my-zsh ]]; then