From dcd85961926467647e015ef803df9bdaacbc3509 Mon Sep 17 00:00:00 2001 From: Paul Melnikow Date: Sat, 10 Sep 2016 10:41:37 -0400 Subject: [PATCH] Don't load pfunctions from vi swap files --- init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.zsh b/init.zsh index 2ce2089..665e6c4 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[@]")