Просмотр исходного кода

Add documentation for --icons flag

- Update completions
  - fish
  - zsh
- Update man page
- Update help text
Oleksii Filonenko 6 лет назад
Родитель
Сommit
58c821be6e
4 измененных файлов с 9 добавлено и 0 удалено
  1. 2 0
      contrib/completions.fish
  2. 1 0
      contrib/completions.zsh
  3. 5 0
      contrib/man/exa.1
  4. 1 0
      src/options/help.rs

+ 2 - 0
contrib/completions.fish

@@ -1,3 +1,4 @@
+#!/bin/sh
 # 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"
@@ -14,6 +15,7 @@ complete -c exa        -l 'color'        -d "When to use terminal colours"
 complete -c exa        -l 'colour'       -d "When to use terminal colours"
 complete -c exa        -l 'color-scale'  -d "Highlight levels of file sizes distinctly"
 complete -c exa        -l 'colour-scale' -d "Highlight levels of file sizes distinctly"
+complete -c exa        -l 'icons'        -d "Display icons"
 
 # Filtering and sorting options
 complete -c exa -l 'group-directories-first' -d "Sort directories before other files"

+ 1 - 0
contrib/completions.zsh

@@ -21,6 +21,7 @@ __exa() {
         {-F,--classify}"[Display type indicator by file names]" \
         --colo{,u}r"[When to use terminal colours]" \
         --colo{,u}r-scale"[Highlight levels of file sizes distinctly]" \
+        --icons"[Display icons]" \
         --group-directories-first"[Sort directories before other files]" \
         --git-ignore"[Ignore files mentioned in '.gitignore']" \
         {-a,--all}"[Show hidden and 'dot' files]" \

+ 5 - 0
contrib/man/exa.1

@@ -61,6 +61,11 @@ when to use terminal colours (always, automatic, never)
 highlight levels of file sizes distinctly
 .RS
 .RE
+.TP
+.B \-\-icons
+display icons
+.RS
+.RE
 .SH FILTERING AND SORTING OPTIONS
 .TP
 .B \-a, \-\-all

+ 1 - 0
src/options/help.rs

@@ -19,6 +19,7 @@ DISPLAY OPTIONS
   -F, --classify     display type indicator by file names
   --colo[u]r=WHEN    when to use terminal colours (always, auto, never)
   --colo[u]r-scale   highlight levels of file sizes distinctly
+  --icons            display icons
 
 FILTERING AND SORTING OPTIONS
   -a, --all                  show hidden and 'dot' files