2017-05-06 19:34:59 +00:00
|
|
|
# Meta-stuff
|
|
|
|
complete -c exa -s 'v' -l 'version' -d "Show version of exa"
|
|
|
|
complete -c exa -s '?' -l 'help' -d "Show list of command-line options"
|
|
|
|
|
|
|
|
# Display options
|
|
|
|
complete -c exa -s '1' -l 'oneline' -d "Display one entry per line"
|
2017-05-06 22:00:45 +00:00
|
|
|
complete -c exa -s 'l' -l 'long' -d "Display extended file metadata as a table"
|
2017-05-06 19:34:59 +00:00
|
|
|
complete -c exa -s 'G' -l 'grid' -d "Display entries in a grid"
|
2017-05-06 22:00:45 +00:00
|
|
|
complete -c exa -s 'x' -l 'across' -d "Sort the grid across, rather than downwards"
|
2017-05-06 19:34:59 +00:00
|
|
|
complete -c exa -s 'R' -l 'recurse' -d "Recurse into directories"
|
|
|
|
complete -c exa -s 'T' -l 'tree' -d "Recurse into directories as a tree"
|
|
|
|
complete -c exa -s 'F' -l 'classify' -d "Display type indicator by file names"
|
2021-08-09 20:17:57 +00:00
|
|
|
complete -c exa -l 'color' \
|
|
|
|
-l 'colour' -d "When to use terminal colours" -x -a "
|
|
|
|
always\t'Always use colour'
|
|
|
|
auto\t'Use colour if standard output is a terminal'
|
|
|
|
never\t'Never use colour'
|
|
|
|
"
|
|
|
|
complete -c exa -l 'color-scale' \
|
|
|
|
-l 'colour-scale' -d "Highlight levels of file sizes distinctly"
|
2019-07-19 06:58:50 +00:00
|
|
|
complete -c exa -l 'icons' -d "Display icons"
|
2021-02-27 20:48:00 +00:00
|
|
|
complete -c exa -l 'no-icons' -d "Don't display icons"
|
2017-05-06 19:34:59 +00:00
|
|
|
|
|
|
|
# Filtering and sorting options
|
|
|
|
complete -c exa -l 'group-directories-first' -d "Sort directories before other files"
|
2017-09-27 12:46:36 +00:00
|
|
|
complete -c exa -l 'git-ignore' -d "Ignore files mentioned in '.gitignore'"
|
2019-07-15 13:58:31 +00:00
|
|
|
complete -c exa -s 'a' -l 'all' -d "Show hidden and 'dot' files"
|
2017-05-06 19:34:59 +00:00
|
|
|
complete -c exa -s 'd' -l 'list-dirs' -d "List directories like regular files"
|
2021-08-09 20:17:57 +00:00
|
|
|
complete -c exa -s 'L' -l 'level' -d "Limit the depth of recursion" -x -a "1 2 3 4 5 6 7 8 9"
|
2017-05-06 19:34:59 +00:00
|
|
|
complete -c exa -s 'r' -l 'reverse' -d "Reverse the sort order"
|
2021-08-09 20:17:57 +00:00
|
|
|
complete -c exa -s 's' -l 'sort' -d "Which field to sort by" -x -a "
|
2017-05-06 19:34:59 +00:00
|
|
|
accessed\t'Sort by file accessed time'
|
2017-09-13 22:26:06 +00:00
|
|
|
age\t'Sort by file modified time (newest first)'
|
2018-12-17 04:46:50 +00:00
|
|
|
changed\t'Sort by changed time'
|
2017-05-06 19:34:59 +00:00
|
|
|
created\t'Sort by file modified time'
|
2017-09-13 22:26:06 +00:00
|
|
|
date\t'Sort by file modified time'
|
2017-05-06 19:34:59 +00:00
|
|
|
ext\t'Sort by file extension'
|
2017-08-20 16:33:39 +00:00
|
|
|
Ext\t'Sort by file extension (uppercase first)'
|
2017-05-06 19:34:59 +00:00
|
|
|
extension\t'Sort by file extension'
|
2017-08-20 16:33:39 +00:00
|
|
|
Extension\t'Sort by file extension (uppercase first)'
|
2017-05-06 19:34:59 +00:00
|
|
|
filename\t'Sort by filename'
|
2017-08-20 16:33:39 +00:00
|
|
|
Filename\t'Sort by filename (uppercase first)'
|
2017-05-06 19:34:59 +00:00
|
|
|
inode\t'Sort by file inode'
|
|
|
|
modified\t'Sort by file modified time'
|
|
|
|
name\t'Sort by filename'
|
2017-08-20 16:33:39 +00:00
|
|
|
Name\t'Sort by filename (uppercase first)'
|
2017-09-13 22:26:06 +00:00
|
|
|
newest\t'Sort by file modified time (newest first)'
|
2017-05-06 19:34:59 +00:00
|
|
|
none\t'Do not sort files at all'
|
2017-09-13 22:26:06 +00:00
|
|
|
oldest\t'Sort by file modified time'
|
2017-05-06 19:34:59 +00:00
|
|
|
size\t'Sort by file size'
|
2017-09-13 22:26:06 +00:00
|
|
|
time\t'Sort by file modified time'
|
2017-06-29 13:57:43 +00:00
|
|
|
type\t'Sort by file type'
|
2017-05-06 19:34:59 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
|
2019-11-12 00:18:51 +00:00
|
|
|
complete -c exa -s 'D' -l 'only-dirs' -d "List only directories"
|
2017-05-06 19:34:59 +00:00
|
|
|
|
|
|
|
# Long view options
|
2017-05-06 22:00:45 +00:00
|
|
|
complete -c exa -s 'b' -l 'binary' -d "List file sizes with binary prefixes"
|
|
|
|
complete -c exa -s 'B' -l 'bytes' -d "List file sizes in bytes, without any prefixes"
|
|
|
|
complete -c exa -s 'g' -l 'group' -d "List each file's group"
|
2017-05-06 19:34:59 +00:00
|
|
|
complete -c exa -s 'h' -l 'header' -d "Add a header row to each column"
|
2021-06-24 09:27:45 +00:00
|
|
|
complete -c exa -s 'H' -l 'links' -d "List each file's number of hard links"
|
2023-07-19 21:58:02 +00:00
|
|
|
complete -c exa -s 'i' -l 'inode' -d "List each file's inode number"
|
2017-05-06 22:00:45 +00:00
|
|
|
complete -c exa -s 'S' -l 'blocks' -d "List each file's number of filesystem blocks"
|
2021-08-09 20:17:57 +00:00
|
|
|
complete -c exa -s 't' -l 'time' -d "Which timestamp field to list" -x -a "
|
2018-12-17 04:46:50 +00:00
|
|
|
modified\t'Display modified time'
|
|
|
|
changed\t'Display changed time'
|
2017-05-06 19:34:59 +00:00
|
|
|
accessed\t'Display accessed time'
|
|
|
|
created\t'Display created time'
|
|
|
|
"
|
2018-12-17 04:46:50 +00:00
|
|
|
complete -c exa -s 'm' -l 'modified' -d "Use the modified timestamp field"
|
2021-03-31 13:46:24 +00:00
|
|
|
complete -c exa -s 'n' -l 'numeric' -d "List numeric user and group IDs."
|
2018-12-17 04:46:50 +00:00
|
|
|
complete -c exa -l 'changed' -d "Use the changed timestamp field"
|
2017-07-05 23:52:27 +00:00
|
|
|
complete -c exa -s 'u' -l 'accessed' -d "Use the accessed timestamp field"
|
|
|
|
complete -c exa -s 'U' -l 'created' -d "Use the created timestamp field"
|
2021-08-09 20:17:57 +00:00
|
|
|
complete -c exa -l 'time-style' -d "How to format timestamps" -x -a "
|
2017-07-05 23:52:27 +00:00
|
|
|
default\t'Use the default time style'
|
|
|
|
iso\t'Display brief ISO timestamps'
|
|
|
|
long-iso\t'Display longer ISO timestaps, up to the minute'
|
|
|
|
full-iso\t'Display full ISO timestamps, up to the nanosecond'
|
|
|
|
"
|
2019-12-23 11:16:45 +00:00
|
|
|
complete -c exa -l 'no-permissions' -d "Suppress the permissions field"
|
2021-03-25 06:31:56 +00:00
|
|
|
complete -c exa -l 'octal-permissions' -d "List each file's permission in octal format"
|
2019-12-23 11:16:45 +00:00
|
|
|
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"
|
2017-05-06 19:34:59 +00:00
|
|
|
|
|
|
|
# Optional extras
|
2019-11-16 21:51:06 +00:00
|
|
|
complete -c exa -l 'git' -d "List each file's Git status, if tracked"
|
2017-05-06 22:00:45 +00:00
|
|
|
complete -c exa -s '@' -l 'extended' -d "List each file's extended attributes and sizes"
|