From 817dd3aa3aeba2d92af5860ffed1d6ee2377eaff 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). Signed-off-by: Sorin Ionescu --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index fde7bcd..75adfe5 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[@]")