1
0
Эх сурвалжийг харах

Merge pull request #456 from gierens/nu-completions

feat(completions): add basic nushell completion file
Christina Sørensen 2 жил өмнө
parent
commit
43dd047c56

+ 3 - 0
.github/CODEOWNERS

@@ -42,3 +42,6 @@ xtests/* @cafkafk
 # Debian files
 devtools/deb-package.sh @gierens
 deb.asc @gierens
+
+# Nushell completions
+completions/nush/* @PThorpe92

+ 49 - 0
completions/nush/eza.nu

@@ -0,0 +1,49 @@
+export extern "eza" [
+    --version(-v)              # Show version of eza
+    --help(-?)                 # Show list of command-line options
+    --oneline(-1)              # Display one entry per line
+    --long(-l)                 # Display extended file metadata as a table
+    --grid(-G)                 # Display entries in a grid
+    --across(-x)               # Sort the grid across, rather than downwards
+    --recurse(-R)              # Recurse into directories
+    --tree(-T)                 # Recurse into directories as a tree
+    --classify(-F)             # Display type indicator by file names
+    --icons                    # Display icons
+    --no-icons                 # Don't display icons
+    --no-quotes                # Don't quote file names with spaces
+    --hyperlink                # Display entries as hyperlinks
+    --group-directories-first  # Sort directories before other files
+    --git-ignore               # Ignore files mentioned in '.gitignore'
+    --all(-a)                  # Show hidden and 'dot' files. Use this twice to also show the '.' and '..' directories
+    --list-dirs(-d)            # List directories like regular files
+    --level(-L): string        # Limit the depth of recursion
+    --width(-w)                # Limits column output of grid, 0 implies auto-width
+    --reverse(-r)              # Reverse the sort order
+    --only-dirs(-D)            # List only directories
+    --only-files(-f)           # List only files
+    --binary(-b)               # List file sizes with binary prefixes
+    --bytes(-B)                # List file sizes in bytes, without any prefixes
+    --group(-g)                # List each file's group
+    --header(-h)               # Add a header row to each column
+    --links(-H)                # List each file's number of hard links
+    --inode(-i)                # List each file's inode number
+    --blocksize(-S)            # List each file's size of allocated file system blocks
+    --dereference(-X)          # dereference symlinks for file information
+    --modified(-m)             # Use the modified timestamp field
+    --numeric(-n)              # List numeric user and group IDs.
+    --changed                  # Use the changed timestamp field
+    --accessed(-u)             # Use the accessed timestamp field
+    --created(-U)              # Use the created timestamp field
+    --no-permissions           # Suppress the permissions field
+    --octal-permissions(-o)    # List each file's permission in octal format
+    --no-filesize              # Suppress the filesize field
+    --no-user                  # Suppress the user field
+    --no-time                  # Suppress the time field
+    --mounts(-M)               # Show mount details
+    --git                      # List each file's Git status, if tracked
+    --no-git                   # Suppress Git status
+    --git-repos                # List each git-repos status and branch name
+    --git-repos-no-status      # List each git-repos branch name (much faster)
+    --extended(-@)             # List each file's extended attributes and sizes
+    --context(-Z)              # List each file's security context
+]