From 88343c9a362f491f60adbb2e731c9cc0e6995940 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Apr 2014 18:27:16 +0100 Subject: zsh: Use $ZDOTDIR instead of hardcoded path --- tag-zsh/config/zsh/zshenv | 4 ++-- tag-zsh/config/zsh/zshrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv index 11932e6e..c4b3b9c6 100755 --- a/tag-zsh/config/zsh/zshenv +++ b/tag-zsh/config/zsh/zshenv @@ -16,10 +16,10 @@ fi export PATH -myfuncs=( ~/projects/dotfiles/zsh/functions/*(/) ) +myfuncs=( $ZDOTDIR/functions/*(/) ) fpath=( $myfuncs - ~/projects/dotfiles/zsh/completion/ + $ZDOTDIR/completion/ $fpath ) if [[ -d /usr/local/share/zsh-completions ]] diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 365214c9..d183baa2 100755 --- a/tag-zsh/config/zsh/zshrc +++ b/tag-zsh/config/zsh/zshrc @@ -358,5 +358,5 @@ autoload -U fasd source ~/.zsh/cache/fasd-init-zsh if [[ $OSTYPE == freebsd* ]]; then - source ~/projects/dotfiles/zsh/freebsd.zsh + source $ZDOTDIR/freebsd.zsh fi -- cgit 1.4.1