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)
This commit is contained in:
parent
2ebdbdcff5
commit
7c4de1cb07
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue