summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh
diff options
context:
space:
mode:
authorAlan Pearce2014-04-12 18:27:16 +0100
committerAlan Pearce2014-04-12 18:27:16 +0100
commit88343c9a362f491f60adbb2e731c9cc0e6995940 (patch)
treedbfa11dfd81e39a3c2da99fc934884b6e75881be /tag-zsh/config/zsh
parentd822d1211c7b6beb4b29277a28d47fade2825c94 (diff)
downloadnixfiles-88343c9a362f491f60adbb2e731c9cc0e6995940.tar.lz
nixfiles-88343c9a362f491f60adbb2e731c9cc0e6995940.tar.zst
nixfiles-88343c9a362f491f60adbb2e731c9cc0e6995940.zip
zsh: Use $ZDOTDIR instead of hardcoded path
Diffstat (limited to 'tag-zsh/config/zsh')
-rwxr-xr-xtag-zsh/config/zsh/zshenv4
-rwxr-xr-xtag-zsh/config/zsh/zshrc2
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