question about dir_color eval
LuanVSO opened this issue · comments
Luan Vitor Simião Oliveira commented
prezto/modules/utility/init.zsh
Line 91 in 7ec1ecd
whats the
(.N)
supposed to do in this line?in my system it is preventing .dir_colors from being matched
Indrajit Raychaudhuri commented
(.N)
is composition of two separate Glob Qualifiers.
.
checks if$HOME/.dir_colors
is a plain file.N
sets theNULL_GLOB
option for$HOME/.dir_colors
(In ZSH parlance, whenNULL_GLOB
is set, if a pattern for filename generation has no matches, delete the pattern from the argument list instead of reporting an error).
These two qualifiers together effectively means, if $HOME/.dir_colors
doesn't exist as a plain text file, the line eval "$(dircolors --sh $HOME/.dir_colors(.N))"
reduces to eval "$(dircolors --sh)"
instead of eval "$(dircolors --sh $HOME/.dir_colors)"
.
Hope this helps troubleshooting further.
Luan Vitor Simião Oliveira commented
Thanks, my .dir_colors was a symlink to .dircolors