From ade1110e963e47ac41ff0239139c118b68647623 Mon Sep 17 00:00:00 2001 From: Shea690901 Date: Fri, 9 Mar 2018 02:58:34 +0100 Subject: [PATCH] honour set ZDOTDIR when ZDOTDIR is set, you might want to use that instead of HOME for building fdir --- mfunc.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mfunc.plugin.zsh b/mfunc.plugin.zsh index b441876..f85f118 100755 --- a/mfunc.plugin.zsh +++ b/mfunc.plugin.zsh @@ -12,7 +12,7 @@ ###### # this is where our functions live -fdir=$HOME/.functions +fdir=${ZDOTDIR:-${HOME}}/.functions # check if functions directory exists, create if it doesn't if [[ ! -d $fdir/ ]]; then