1
0
Эх сурвалжийг харах

chore: add completion for --only-fies (zsh,fish)

Mohamed Emad 2 жил өмнө
parent
commit
d9b798ea81

+ 1 - 0
completions/fish/eza.fish

@@ -56,6 +56,7 @@ complete -c eza -s s -l sort -d "Which field to sort by" -x -a "
 
 complete -c eza -s I -l ignore-glob -d "Ignore files that match these glob patterns" -r
 complete -c eza -s D -l only-dirs -d "List only directories"
+complete -c eza -s f -l only-files -d "List only files"
 
 # Long view options
 complete -c eza -s b -l binary -d "List file sizes with binary prefixes"

+ 1 - 0
completions/zsh/_eza

@@ -29,6 +29,7 @@ __eza() {
         {-a,--all}"[Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories]" \
         {-d,--list-dirs}"[List directories like regular files]" \
         {-D,--only-dirs}"[List only directories]" \
+        {-f,--only-files}"[List only files]" \
         {-L,--level}"+[Limit the depth of recursion]" \
         {-w,--width}"+[Limits column output of grid, 0 implies auto-width]" \
         {-r,--reverse}"[Reverse the sort order]" \