Przeglądaj źródła

feat: add completions, man for --smart-group

Rami Chasygov 2 lat temu
rodzic
commit
39b6c530f2

+ 1 - 1
completions/bash/eza

@@ -4,7 +4,7 @@ _eza() {
     prev=${COMP_WORDS[COMP_CWORD-1]}
 
     case "$prev" in
-        --help|-v|--version)
+        --help|-v|--version|--smart-group)
             return
             ;;
 

+ 1 - 0
completions/fish/eza.fish

@@ -24,6 +24,7 @@ complete -c eza -l icons -d "Display icons"
 complete -c eza -l no-icons -d "Don't display icons"
 complete -c eza -l no-quotes -d "Don't quote file names with spaces"
 complete -c eza -l hyperlink -d "Display entries as hyperlinks"
+complete -c eza -l smart-group -d "Only show group if it has a different name from owner"
 
 # Filtering and sorting options
 complete -c eza -l group-directories-first -d "Sort directories before other files"

+ 1 - 0
completions/nush/eza.nu

@@ -55,4 +55,5 @@ export extern "eza" [
     --git-repos-no-status      # List each git-repos branch name (much faster)
     --extended(-@)             # List each file's extended attributes and sizes
     --context(-Z)              # List each file's security context
+    --smart-group              # Only show group if it has a different name from owner
 ]

+ 2 - 1
completions/zsh/_eza

@@ -65,7 +65,8 @@ __eza() {
         {-@,--extended}"[List each file's extended attributes and sizes]" \
         {-Z,--context}"[List each file's security context]" \
         {-M,--mounts}"[Show mount details (long mode only)]" \
-        '*:filename:_files'
+        '*:filename:_files' \
+        --smart-group"[Only show group if it has a different name from owner]"
 }
 
 __eza

+ 3 - 0
man/eza.1.md

@@ -103,6 +103,9 @@ Manually setting this option overrides `NO_COLOR` environment.
 `-w`, `--width=COLS`
 : Set screen width in columns.
 
+`--smart-group`
+: Only show group if it has a different name from owner
+
 
 FILTERING AND SORTING OPTIONS
 =============================