mirror of
https://github.com/sorin-ionescu/prezto.git
synced 2025-01-23 06:52:15 +08:00
Don't load pfunctions from vi swap files
This commit is contained in:
parent
a7729561e8
commit
dcd8596192
2
init.zsh
2
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[@]")
|
||||
|
Loading…
Reference in New Issue
Block a user