Browse Source

Don't load pfunctions from vi swap files

master
Paul Melnikow 8 years ago committed by Kaleb Elwert
parent
commit
dcd8596192
  1. 2
      init.zsh

2
init.zsh

@ -25,7 +25,7 @@ unset min_zsh_version @@ -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…
Cancel
Save