completions.fish 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 "Show 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. type\t'Sort by file type'
  38. "
  39. complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
  40. # Long view options
  41. complete -c exa -s 'b' -l 'binary' -d "List file sizes with binary prefixes"
  42. complete -c exa -s 'B' -l 'bytes' -d "List file sizes in bytes, without any prefixes"
  43. complete -c exa -s 'g' -l 'group' -d "List each file's group"
  44. complete -c exa -s 'h' -l 'header' -d "Add a header row to each column"
  45. complete -c exa -s 'h' -l 'links' -d "List each file's number of hard links"
  46. complete -c exa -s 'g' -l 'group' -d "List each file's inode number"
  47. complete -c exa -s 'm' -l 'modified' -d "Use the modified timestamp field"
  48. complete -c exa -s 'S' -l 'blocks' -d "List each file's number of filesystem blocks"
  49. complete -c exa -s 't' -l 'time' -x -d "Which timestamp field to list" -a "
  50. accessed\t'Display accessed time'
  51. created\t'Display created time'
  52. modified\t'Display modified time'
  53. "
  54. complete -c exa -s 'u' -l 'accessed' -d "Use the accessed timestamp field"
  55. complete -c exa -s 'U' -l 'created' -d "Use the created timestamp field"
  56. complete -c exa -l 'time-style' -x -d "How to format timestamps" -a "
  57. default\t'Use the default time style'
  58. iso\t'Display brief ISO timestamps'
  59. long-iso\t'Display longer ISO timestaps, up to the minute'
  60. full-iso\t'Display full ISO timestamps, up to the nanosecond'
  61. "
  62. # Optional extras
  63. complete -c exa -s 'g' -l 'git' -d "List each file's Git status, if tracked"
  64. complete -c exa -s '@' -l 'extended' -d "List each file's extended attributes and sizes"