Skip to content

Instantly share code, notes, and snippets.

@floam
Created November 26, 2018 17:31
Show Gist options
  • Save floam/b7fe88ef925d1db0e45c86f767342bc4 to your computer and use it in GitHub Desktop.
Save floam/b7fe88ef925d1db0e45c86f767342bc4 to your computer and use it in GitHub Desktop.
# ls
# Autogenerated from man page /usr/share/man/man1/ls.1
complete -c ls -s @ --description 'Display extended attribute keys and sizes in long l output.'
complete -c ls -s 1 --description '(The numeric digit one . ) Force output to be one entry per line.'
complete -c ls -s A --description 'List all entries except for \\&. and . Always set for the super-user.'
complete -c ls -s a --description 'Include directory entries whose names begin with a dot \\&.'
complete -c ls -s B --description 'Force printing of non-printable characters (as defined by ctype 3 and current…'
complete -c ls -s b --description 'As B, but use C escape codes whenever possible.'
complete -c ls -s C --description 'Force multi-column output; this is the default when output is to a terminal.'
complete -c ls -s c --description 'Use time when file status was last changed for sorting t or long printing l.'
complete -c ls -s d --description 'Directories are listed as plain files (not searched recursively).'
complete -c ls -s e --description 'Print the Access Control List (ACL) associated with the file, if present, in …'
complete -c ls -s F --description 'Display a slash / immediately after each pathname that is a directory, an ast…'
complete -c ls -s f --description 'Output is not sorted. This option turns on the a option.'
complete -c ls -s G --description 'Enable colorized output.'
complete -c ls -s g --description 'This option is only available for compatibility with POSIX; it is used to dis…'
complete -c ls -s H --description 'Symbolic links on the command line are followed.'
complete -c ls -s h --description 'When used with the l option, use unit suffixes: Byte, Kilobyte, Megabyte, Gig…'
complete -c ls -s i --description 'For each file, print the file\'s file serial number (inode number).'
complete -c ls -s k --description 'If the s option is specified, print the file size allocation in kilobytes, no…'
complete -c ls -s L --description 'Follow all symbolic links to final target and list the file or directory the …'
complete -c ls -s l --description '(The lowercase letter ell . ) List in long format. (See below.'
complete -c ls -s m --description 'Stream output format; list files across the page, separated by commas.'
complete -c ls -s n --description 'Display user and group IDs numerically, rather than converting to a user or g…'
complete -c ls -s O --description 'Include the file flags in a long l output.'
complete -c ls -s o --description 'List in long format, but omit the group id.'
complete -c ls -s P --description 'If argument is a symbolic link, list the link itself rather than the object t…'
complete -c ls -s p --description 'Write a slash / after each filename if that file is a directory.'
complete -c ls -s q --description 'Force printing of non-graphic characters in file names as the character \\&? ;…'
complete -c ls -s R --description 'Recursively list subdirectories encountered.'
complete -c ls -s r --description 'Reverse the order of the sort to get reverse lexicographical order or the old…'
complete -c ls -s S --description 'Sort files by size.'
complete -c ls -s s --description 'Display the number of file system blocks actually used by each file, in units…'
complete -c ls -s T --description 'When used with the l (lowercase letter ell ) option, display complete time in…'
complete -c ls -s t --description 'Sort by time modified (most recently modified first) before sorting the opera…'
complete -c ls -s u --description 'Use time of last access, instead of last modification of the file for sorting…'
complete -c ls -s U --description 'Use time of file creation, instead of last modification for sorting t or long…'
complete -c ls -s v --description 'Force unedited printing of non-graphic characters; this is the default when o…'
complete -c ls -s W --description 'Display whiteouts when scanning directories. S flag).'
complete -c ls -s w --description 'Force raw printing of non-printable characters.'
complete -c ls -s x --description 'The same as C, except that the multi-column output is produced with entries s…'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment