ソースを参照

Add new suppress flags to shell completion scripts

Orvar Segerström 6 年 前
コミット
e791cf4181
2 ファイル変更8 行追加0 行削除
  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'
     long-iso\t'Display longer ISO timestaps, up to the minute'
     full-iso\t'Display full ISO timestamps, up to the nanosecond'
     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
 # Optional extras
 complete -c exa -s 'g' -l 'git'      -d "List each file's Git status, if tracked"
 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]" \
         {-S,--blocks}"[List each file's number of filesystem blocks]" \
         {-t,--time}="[Which time field to show]:(time field):(accessed changed created modified)" \
         {-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)" \
         --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,--accessed}"[Use the accessed timestamp field]" \
         {-U,--created}"[Use the created timestamp field]" \
         {-U,--created}"[Use the created timestamp field]" \
         --git"[List each file's Git status, if tracked]" \
         --git"[List each file's Git status, if tracked]" \