Add new suppress flags to shell completion scripts

This commit is contained in:
Orvar Segerström 2019-12-23 12:16:45 +01:00
parent 5d4a09ff01
commit e791cf4181
2 changed files with 8 additions and 0 deletions

View File

@ -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"

View File

@ -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]" \