Explorar el Código

Add new suppress flags to shell completion scripts

Orvar Segerström hace 6 años
padre
commit
e791cf4181
Se han modificado 2 ficheros con 8 adiciones y 0 borrados
  1. 4 0
      contrib/completions.fish
  2. 4 0
      contrib/completions.zsh

+ 4 - 0
contrib/completions.fish

@@ -74,6 +74,10 @@ complete -c exa        -l 'time-style' -x -d "How to format timestamps" -a "
     long-iso\t'Display longer ISO timestaps, up to the minute'
     full-iso\t'Display full ISO timestamps, up to the nanosecond'
 "
+complete -c exa        -l 'no-permissions' -d "Suppress the permissions field"
+complete -c exa        -l 'no-filesize'    -d "Suppress the filesize field"
+complete -c exa        -l 'no-user'        -d "Suppress the user field"
+complete -c exa        -l 'no-time'        -d "Suppress the time field"
 
 # Optional extras
 complete -c exa -s 'g' -l 'git'      -d "List each file's Git status, if tracked"

+ 4 - 0
contrib/completions.zsh

@@ -40,6 +40,10 @@ __exa() {
         {-S,--blocks}"[List each file's number of filesystem blocks]" \
         {-t,--time}="[Which time field to show]:(time field):(accessed changed created modified)" \
         --time-style="[How to format timestamps]:(time style):(default iso long-iso full-iso)" \
+        --no-permissions"[Suppress the permissions field]" \
+        --no-filesize"[Suppress the filesize field]" \
+        --no-user"[Suppress the user field]" \
+        --no-time"[Suppress the time field]" \
         {-u,--accessed}"[Use the accessed timestamp field]" \
         {-U,--created}"[Use the created timestamp field]" \
         --git"[List each file's Git status, if tracked]" \