Pārlūkot izejas kodu

fix: change completions to new binary name

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 gadi atpakaļ
vecāks
revīzija
d5baeb23c3
3 mainītis faili ar 55 papildinājumiem un 55 dzēšanām
  1. 4 4
      completions/bash/exa
  2. 45 45
      completions/fish/exa.fish
  3. 6 6
      completions/zsh/_exa

+ 4 - 4
completions/bash/exa

@@ -1,4 +1,4 @@
-_exa()
+_eza()
 {
 {
     cur=${COMP_WORDS[COMP_CWORD]}
     cur=${COMP_WORDS[COMP_CWORD]}
     prev=${COMP_WORDS[COMP_CWORD-1]}
     prev=${COMP_WORDS[COMP_CWORD-1]}
@@ -38,13 +38,13 @@ _exa()
         # _parse_help doesn’t pick up short options when they are on the same line than long options
         # _parse_help doesn’t pick up short options when they are on the same line than long options
         --*)
         --*)
             # colo[u]r isn’t parsed correctly so we filter these options out and add them by hand
             # colo[u]r isn’t parsed correctly so we filter these options out and add them by hand
-            parse_help=$( exa --help | grep -oE ' (\-\-[[:alnum:]@-]+)' | tr -d ' ' | grep -v '\-\-colo' )
+            parse_help=$( eza --help | grep -oE ' (\-\-[[:alnum:]@-]+)' | tr -d ' ' | grep -v '\-\-colo' )
             completions=$( echo '--color --colour --color-scale --colour-scale' $parse_help )
             completions=$( echo '--color --colour --color-scale --colour-scale' $parse_help )
             COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) )
             COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) )
             ;;
             ;;
 
 
         -*)
         -*)
-            completions=$( exa --help | grep -oE ' (\-[[:alnum:]@])' | tr -d ' ' )
+            completions=$( eza --help | grep -oE ' (\-[[:alnum:]@])' | tr -d ' ' )
             COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) )
             COMPREPLY=( $( compgen -W "$completions" -- "$cur" ) )
             ;;
             ;;
 
 
@@ -53,4 +53,4 @@ _exa()
             ;;
             ;;
     esac
     esac
 } &&
 } &&
-complete -o filenames -o bashdefault -F _exa exa
+complete -o filenames -o bashdefault -F _eza eza

+ 45 - 45
completions/fish/exa.fish

@@ -1,35 +1,35 @@
 # Meta-stuff
 # 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"
+complete -c eza -s 'v' -l 'version' -d "Show version of eza"
+complete -c eza -s '?' -l 'help'    -d "Show list of command-line options"
 
 
 # Display options
 # Display options
-complete -c exa -s '1' -l 'oneline'      -d "Display one entry per line"
-complete -c exa -s 'l' -l 'long'         -d "Display extended file metadata as a table"
-complete -c exa -s 'G' -l 'grid'         -d "Display entries in a grid"
-complete -c exa -s 'x' -l 'across'       -d "Sort the grid across, rather than downwards"
-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"
-complete -c exa        -l 'color' \
+complete -c eza -s '1' -l 'oneline'      -d "Display one entry per line"
+complete -c eza -s 'l' -l 'long'         -d "Display extended file metadata as a table"
+complete -c eza -s 'G' -l 'grid'         -d "Display entries in a grid"
+complete -c eza -s 'x' -l 'across'       -d "Sort the grid across, rather than downwards"
+complete -c eza -s 'R' -l 'recurse'      -d "Recurse into directories"
+complete -c eza -s 'T' -l 'tree'         -d "Recurse into directories as a tree"
+complete -c eza -s 'F' -l 'classify'     -d "Display type indicator by file names"
+complete -c eza        -l 'color' \
                        -l 'colour'       -d "When to use terminal colours" -x -a "
                        -l 'colour'       -d "When to use terminal colours" -x -a "
     always\t'Always use colour'
     always\t'Always use colour'
     auto\t'Use colour if standard output is a terminal'
     auto\t'Use colour if standard output is a terminal'
     never\t'Never use colour'
     never\t'Never use colour'
 "
 "
-complete -c exa        -l 'color-scale' \
+complete -c eza        -l 'color-scale' \
                        -l 'colour-scale' -d "Highlight levels of file sizes distinctly"
                        -l 'colour-scale' -d "Highlight levels of file sizes distinctly"
-complete -c exa        -l 'icons'        -d "Display icons"
-complete -c exa        -l 'no-icons'     -d "Don't display icons"
-complete -c exa        -l 'hyperlink'    -d "Display entries as hyperlinks"
+complete -c eza        -l 'icons'        -d "Display icons"
+complete -c eza        -l 'no-icons'     -d "Don't display icons"
+complete -c eza        -l 'hyperlink'    -d "Display entries as hyperlinks"
 
 
 # Filtering and sorting options
 # Filtering and sorting options
-complete -c exa -l 'group-directories-first' -d "Sort directories before other files"
-complete -c exa -l 'git-ignore'           -d "Ignore files mentioned in '.gitignore'"
-complete -c exa -s 'a' -l 'all'       -d "Show hidden and 'dot' files"
-complete -c exa -s 'd' -l 'list-dirs' -d "List directories like regular files"
-complete -c exa -s 'L' -l 'level'     -d "Limit the depth of recursion" -x -a "1 2 3 4 5 6 7 8 9"
-complete -c exa -s 'r' -l 'reverse'   -d "Reverse the sort order"
-complete -c exa -s 's' -l 'sort'      -d "Which field to sort by" -x -a "
+complete -c eza -l 'group-directories-first' -d "Sort directories before other files"
+complete -c eza -l 'git-ignore'           -d "Ignore files mentioned in '.gitignore'"
+complete -c eza -s 'a' -l 'all'       -d "Show hidden and 'dot' files"
+complete -c eza -s 'd' -l 'list-dirs' -d "List directories like regular files"
+complete -c eza -s 'L' -l 'level'     -d "Limit the depth of recursion" -x -a "1 2 3 4 5 6 7 8 9"
+complete -c eza -s 'r' -l 'reverse'   -d "Reverse the sort order"
+complete -c eza -s 's' -l 'sort'      -d "Which field to sort by" -x -a "
     accessed\t'Sort by file accessed time'
     accessed\t'Sort by file accessed time'
     age\t'Sort by file modified time (newest first)'
     age\t'Sort by file modified time (newest first)'
     changed\t'Sort by changed time'
     changed\t'Sort by changed time'
@@ -53,41 +53,41 @@ complete -c exa -s 's' -l 'sort'      -d "Which field to sort by" -x -a "
     type\t'Sort by file type'
     type\t'Sort by file type'
 "
 "
 
 
-complete -c exa -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
-complete -c exa -s 'D' -l 'only-dirs'   -d "List only directories"
+complete -c eza -s 'I' -l 'ignore-glob' -d "Ignore files that match these glob patterns" -r
+complete -c eza -s 'D' -l 'only-dirs'   -d "List only directories"
 
 
 # Long view options
 # Long view options
-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"
-complete -c exa -s 'h' -l 'header'   -d "Add a header row to each column"
-complete -c exa -s 'H' -l 'links'    -d "List each file's number of hard links"
-complete -c exa -s 'i' -l 'inode'    -d "List each file's inode number"
-complete -c exa -s 'S' -l 'blocks'   -d "List each file's number of filesystem blocks"
-complete -c exa -s 't' -l 'time'     -d "Which timestamp field to list" -x -a "
+complete -c eza -s 'b' -l 'binary'   -d "List file sizes with binary prefixes"
+complete -c eza -s 'B' -l 'bytes'    -d "List file sizes in bytes, without any prefixes"
+complete -c eza -s 'g' -l 'group'    -d "List each file's group"
+complete -c eza -s 'h' -l 'header'   -d "Add a header row to each column"
+complete -c eza -s 'H' -l 'links'    -d "List each file's number of hard links"
+complete -c eza -s 'i' -l 'inode'    -d "List each file's inode number"
+complete -c eza -s 'S' -l 'blocks'   -d "List each file's number of filesystem blocks"
+complete -c eza -s 't' -l 'time'     -d "Which timestamp field to list" -x -a "
     modified\t'Display modified time'
     modified\t'Display modified time'
     changed\t'Display changed time'
     changed\t'Display changed time'
     accessed\t'Display accessed time'
     accessed\t'Display accessed time'
     created\t'Display created time'
     created\t'Display created time'
 "
 "
-complete -c exa -s 'm' -l 'modified'      -d "Use the modified timestamp field"
-complete -c exa -s 'n' -l 'numeric'       -d "List numeric user and group IDs."
-complete -c exa        -l 'changed'       -d "Use the changed timestamp field"
-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"
-complete -c exa        -l 'time-style'    -d "How to format timestamps" -x -a "
+complete -c eza -s 'm' -l 'modified'      -d "Use the modified timestamp field"
+complete -c eza -s 'n' -l 'numeric'       -d "List numeric user and group IDs."
+complete -c eza        -l 'changed'       -d "Use the changed timestamp field"
+complete -c eza -s 'u' -l 'accessed'      -d "Use the accessed timestamp field"
+complete -c eza -s 'U' -l 'created'       -d "Use the created timestamp field"
+complete -c eza        -l 'time-style'    -d "How to format timestamps" -x -a "
     default\t'Use the default time style'
     default\t'Use the default time style'
     iso\t'Display brief ISO timestamps'
     iso\t'Display brief ISO timestamps'
     long-iso\t'Display longer ISO timestaps, up to the minute'
     long-iso\t'Display longer ISO timestaps, up to the minute'
     full-iso\t'Display full ISO timestamps, up to the nanosecond'
     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 -s 'o' -l 'octal-permissions' -d "List each file's permission in octal format"
-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"
+complete -c eza        -l 'no-permissions'    -d "Suppress the permissions field"
+complete -c eza -s 'o' -l 'octal-permissions' -d "List each file's permission in octal format"
+complete -c eza        -l 'no-filesize'       -d "Suppress the filesize field"
+complete -c eza        -l 'no-user'           -d "Suppress the user field"
+complete -c eza        -l 'no-time'           -d "Suppress the time field"
 
 
 # Optional extras
 # Optional extras
-complete -c exa -l 'git' -d "List each file's Git status, if tracked"
-complete -c exa -s '@' -l 'extended' -d "List each file's extended attributes and sizes"
-complete -c exa -s 'Z' -l 'context' -d "List each file's security context"
+complete -c eza -l 'git' -d "List each file's Git status, if tracked"
+complete -c eza -s '@' -l 'extended' -d "List each file's extended attributes and sizes"
+complete -c eza -s 'Z' -l 'context' -d "List each file's security context"

+ 6 - 6
completions/zsh/_exa

@@ -1,16 +1,16 @@
-#compdef exa
+#compdef eza
 
 
-# Save this file as _exa in /usr/local/share/zsh/site-functions or in any
+# Save this file as _eza in /usr/local/share/zsh/site-functions or in any
 # other folder in $fpath.  E.g. save it in a folder called ~/.zfunc and add a
 # other folder in $fpath.  E.g. save it in a folder called ~/.zfunc and add a
 # line containing `fpath=(~/.zfunc $fpath)` somewhere before `compinit` in your
 # line containing `fpath=(~/.zfunc $fpath)` somewhere before `compinit` in your
 # ~/.zshrc.
 # ~/.zshrc.
 
 
-__exa() {
+__eza() {
     # Give completions using the `_arguments` utility function with
     # Give completions using the `_arguments` utility function with
-    # `-s` for option stacking like `exa -ab` for `exa -a -b` and
-    # `-S` for delimiting options with `--` like in `exa -- -a`.
+    # `-s` for option stacking like `eza -ab` for `eza -a -b` and
+    # `-S` for delimiting options with `--` like in `eza -- -a`.
     _arguments -s -S \
     _arguments -s -S \
-        "(- *)"{-v,--version}"[Show version of exa]" \
+        "(- *)"{-v,--version}"[Show version of eza]" \
         "(- *)"{-'\?',--help}"[Show list of command-line options]" \
         "(- *)"{-'\?',--help}"[Show list of command-line options]" \
         {-1,--oneline}"[Display one entry per line]" \
         {-1,--oneline}"[Display one entry per line]" \
         {-l,--long}"[Display extended file metadata as a table]" \
         {-l,--long}"[Display extended file metadata as a table]" \