File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ _prompt_mnml_buffer-empty() {
11
11
if (( MNML_LAST_ERR )) print -Pn ' %F{${MNML_ERR_COLOR}}${MNML_LAST_ERR} '
12
12
print -Pn ' %(1j.%F{244}%j%f& .)%F{244}%n%f@%F{244}%m%f:'
13
13
print -Pn %F{244}${${(% ):-% ~} // \/ /% f\/ % F{244} }
14
- local -i a_files=$( command ls -Aq | command wc -l )
15
- local -i v_files=$( command ls -q | command wc -l )
16
- local -i h_files=$(( a_files - v_files ) )
17
- print -Pn " %f[%F{244}${v_files} %f"
18
- if (( h_files )) print -Pn " (%F{244}${h_files} %f)"
14
+ local -a a_files=( * (DN) )
15
+ local -a v_files=( * (N^D) )
16
+ local -a h_files=( ${ a_files: | v_files} )
17
+ print -Pn " %f[%F{244}${# v_files} %f"
18
+ if (( # h_files )) print -Pn " (%F{244}${# h_files} %f)"
19
19
print ]
20
20
# display magic enter
21
21
if (( ${# dirstack} )) print -P %F{244}${${dirstack/ ${HOME} / \~ } // \/ /% f\/ % F{244} }%f
You can’t perform that action at this time.
0 commit comments