completions.fish 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Meta-stuff
  2. complete -c exa -s 'v' -l 'version' -d "Show version of exa"
  3. complete -c exa -s '?' -l 'help' -d "Show list of command-line options"
  4. # Display options
  5. complete -c exa -s '1' -l 'oneline' -d "Display one entry per line"
  6. complete -c exa -s 'l' -l 'long' -d "Display extended file metadata as a table"
  7. complete -c exa -s 'G' -l 'grid' -d "Display entries in a grid"
  8. complete -c exa -s 'x' -l 'across' -d "Sort the grid across, rather than downwards"
  9. complete -c exa -s 'R' -l 'recurse' -d "Recurse into directories"
  10. complete -c exa -s 'T' -l 'tree' -d "Recurse into directories as a tree"
  11. complete -c exa -s 'F' -l 'classify' -d "Display type indicator by file names"
  12. complete -c exa -l 'color' -d "When to use terminal colours"
  13. complete -c exa -l 'colour' -d "When to use terminal colours"
  14. complete -c exa -l 'color-scale' -d "Highlight levels of file sizes distinctly"
  15. complete -c exa -l 'colour-scale' -d "Highlight levels of file sizes distinctly"
  16. # Filtering and sorting options
  17. complete -c exa -l 'group-directories-first' -d "Sort directories before other files"
  18. complete -c exa -s 'a' -l 'all' -d "Don't hide hidden and 'dot' files"
  19. complete -c exa -s 'd' -l 'list-dirs' -d "List directories like regular files"
  20. complete -c exa -s 'L' -l 'level' -d "Limit the depth of recursion" -a "1 2 3 4 5 6 7 8 9"
  21. complete -c exa -s 'r' -l 'reverse' -d "Reverse the sort order"
  22. complete -c exa -s 's' -l 'sort' -x -d "Which field to sort by" -a "
  23. accessed\t'Sort by file accessed time'
  24. created\t'Sort by file modified time'
  25. ext\t'Sort by file extension'
  26. Ext\t'Sort by file extension (case-insensitive)'
  27. extension\t'Sort by file extension'
  28. Extension\t'Sort by file extension (case-insensitive)'
  29. filename\t'Sort by filename'
  30. Filename\t'Sort by filename (case-insensitive)'
  31. inode\t'Sort by file inode'
  32. modified\t'Sort by file modified time'
  33. name\t'Sort by filename'
  34. Name\t'Sort by filename (case-insensitive)'
  35. none\t'Do not sort files at all'
  36. size\t'Sort by file size'
  37. "
  38. complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
  39. # Long view options
  40. complete -c exa -s 'b' -l 'binary' -d "List file sizes with binary prefixes"
  41. complete -c exa -s 'B' -l 'bytes' -d "List file sizes in bytes, without any prefixes"
  42. complete -c exa -s 'g' -l 'group' -d "List each file's group"
  43. complete -c exa -s 'h' -l 'header' -d "Add a header row to each column"
  44. complete -c exa -s 'h' -l 'links' -d "List each file's number of hard links"
  45. complete -c exa -s 'g' -l 'group' -d "List each file's inode number"
  46. complete -c exa -s 'm' -l 'modified' -d "Use the modified timestamp field"
  47. complete -c exa -s 'S' -l 'blocks' -d "List each file's number of filesystem blocks"
  48. complete -c exa -s 't' -l 'time' -x -d "Which timestamp field to list" -a "
  49. accessed\t'Display accessed time'
  50. created\t'Display created time'
  51. modified\t'Display modified time'
  52. "
  53. complete -c exa -s 'u' -l 'accessed' -d "Use the accessed timestamp field"
  54. complete -c exa -s 'U' -l 'created' -d "Use the created timestamp field"
  55. # Optional extras
  56. complete -c exa -s 'g' -l 'git' -d "List each file's Git status, if tracked"
  57. complete -c exa -s '@' -l 'extended' -d "List each file's extended attributes and sizes"