From 7c4de1cb0716e1100c9cffe264d4826e62acc2ca Mon Sep 17 00:00:00 2001 From: Caleb Land Date: Tue, 10 Dec 2013 18:49:43 -0500 Subject: [PATCH] allow functions in a module to be symlinks add the '-' flag to the function glob which makes the other flag test against the target of the symlink, and not the symlink itself when using rcm (https://github.com/thoughtbot/rcm) the function files are symlinked by default, but the current glob excludes them by targeting normal files (with the '.' flag) --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index fde7bcd3..75adfe51 100644 --- a/init.zsh +++ b/init.zsh @@ -25,7 +25,7 @@ unset min_zsh_version function pmodload { local -a pmodules local pmodule - local pfunction_glob='^([_.]*|prompt_*_setup|README*)(.N:t)' + local pfunction_glob='^([_.]*|prompt_*_setup|README*)(-.N:t)' # $argv is overridden in the anonymous function. pmodules=("$argv[@]")