From e791cf4181d6ee7ca29d132888fe4a2bd2b37ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Orvar=20Segerstr=C3=B6m?= Date: Mon, 23 Dec 2019 12:16:45 +0100 Subject: [PATCH] Add new suppress flags to shell completion scripts --- contrib/completions.fish | 4 ++++ contrib/completions.zsh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/contrib/completions.fish b/contrib/completions.fish index 267d56b..30a70c7 100755 --- a/contrib/completions.fish +++ b/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" diff --git a/contrib/completions.zsh b/contrib/completions.zsh index 9b912b7..9c7f747 100644 --- a/contrib/completions.zsh +++ b/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]" \