diff --git a/share/completions/gem.fish b/share/completions/gem.fish index bd4a82635..6af96aa2a 100644 --- a/share/completions/gem.fish +++ b/share/completions/gem.fish @@ -9,23 +9,23 @@ complete -c gem -n '__fish_use_subcommand' -s v -l version -d "Print the version ##### # Subcommands -complete -c gem -n '__fish_use_subcommand' -xa 'build\t"'(_ "Build a gem from a gemspec")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'cert\t"'(_ "Adjust RubyGems certificate settings")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'check\t"'(_ "Check installed gems")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'cleanup\t"'(_ "Cleanup old versions of installed gems in the local repository")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'contents\t"'(_ "Display the contents of the installed gems")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'dependency\t"'(_ "Show the dependencies of an installed gem")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'environment\t"'(_ "Display RubyGems environmental information")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'help\t"'(_ "Provide help on the 'gem' command")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'install\t"'(_ "Install a gem into the local repository")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'list\t"'(_ "Display all gems whose name starts with STRING")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'query\t"'(_ "Query gem information in local or remote repositories")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'rdoc\t"'(_ "Generates RDoc for pre-installed gems")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'search\t"'(_ "Display all gems whose name contains STRING")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'specification\t"'(_ "Display gem specification (in yaml)")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'uninstall\t"'(_ "Uninstall a gem from the local repository")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'unpack\t"'(_ "Unpack an installed gem to the current directory")'"' -complete -c gem -n '__fish_use_subcommand' -xa 'update\t"'(_ "Update the named gem (or all installed gems) in the local repository")'"' +complete -c gem -n '__fish_use_subcommand' -xa "build\tBuild a gem from a gemspec" +complete -c gem -n '__fish_use_subcommand' -xa "cert\tAdjust RubyGems certificate settings" +complete -c gem -n '__fish_use_subcommand' -xa "check\tCheck installed gems" +complete -c gem -n '__fish_use_subcommand' -xa "cleanup\tCleanup old versions of installed gems in the local repository" +complete -c gem -n '__fish_use_subcommand' -xa "contents\tDisplay the contents of the installed gems" +complete -c gem -n '__fish_use_subcommand' -xa "dependency\tShow the dependencies of an installed gem" +complete -c gem -n '__fish_use_subcommand' -xa "environment\tDisplay RubyGems environmental information" +complete -c gem -n '__fish_use_subcommand' -xa "help\tProvide help on the 'gem' command" +complete -c gem -n '__fish_use_subcommand' -xa "install\tInstall a gem into the local repository" +complete -c gem -n '__fish_use_subcommand' -xa "list\tDisplay all gems whose name starts with STRING" +complete -c gem -n '__fish_use_subcommand' -xa "query\tQuery gem information in local or remote repositories" +complete -c gem -n '__fish_use_subcommand' -xa "rdoc\tGenerates RDoc for pre-installed gems" +complete -c gem -n '__fish_use_subcommand' -xa "search\tDisplay all gems whose name contains STRING" +complete -c gem -n '__fish_use_subcommand' -xa "specification\tDisplay gem specification (in yaml)" +complete -c gem -n '__fish_use_subcommand' -xa "uninstall\tUninstall a gem from the local repository" +complete -c gem -n '__fish_use_subcommand' -xa "unpack\tUnpack an installed gem to the current directory" +complete -c gem -n '__fish_use_subcommand' -xa "update\tUpdate the named gem (or all installed gems) in the local repository" ##### # Subcommand switches @@ -84,12 +84,12 @@ complete $dep_opt -s p -l pipe -d "Pipe Format (name --version ver)" ## # environment set -l env_opt -c gem -n 'contains environment (commandline -poc)' -complete $env_opt -xa 'packageversion\t"'(_ "display the package version")'" gemdir\t"'(_ "display the path where gems are installed")'" gempath\t"'(_ "display path used to search for gems")'" version\t"'(_ "display the gem format version")'" remotesources\t"'(_ "display the remote gem servers")'"' +complete $env_opt -xa "packageversion\tdisplay the package version gemdir\tdisplay the path where gems are installed gempath\tdisplay path used to search for gems version\tdisplay the gem format version remotesources\tdisplay the remote gem servers" ## # help set -l help_opt -c gem -n 'contains help (commandline -poc)' -complete $help_opt -xa 'commands\t"'(_ "list all 'gem' commands")'" examples\t"'(_ "show some examples of usage")'" build cert check cleanup contents dependency environment help install list query rdoc search specification uninstall unpack update' +complete $help_opt -xa "commands\tlist all 'gem' commands examples\tshow some examples of usage build cert check cleanup contents dependency environment help install list query rdoc search specification uninstall unpack update" ## # install diff --git a/share/completions/git.fish b/share/completions/git.fish index 9814d5ee2..e98b4a3bf 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -127,25 +127,25 @@ function __fish_git_files # once per file. contains -- all-staged $argv; and set -l all_staged contains -- unmerged $argv; and set -l unmerged - and set -l unmerged_desc (_ "Unmerged File") + and set -l unmerged_desc "Unmerged File" contains -- added $argv; or set -ql all_staged; and set -l added - and set -l added_desc (_ "Added file") + and set -l added_desc "Added file" contains -- modified $argv; and set -l modified - and set -l modified_desc (_ "Modified file") + and set -l modified_desc "Modified file" contains -- untracked $argv; and set -l untracked - and set -l untracked_desc (_ "Untracked file") + and set -l untracked_desc "Untracked file" contains -- modified-staged $argv; or set -ql all_staged; and set -l modified_staged - and set -l staged_modified_desc (_ "Staged modified file") + and set -l staged_modified_desc "Staged modified file" contains -- deleted $argv; and set -l deleted - and set -l deleted_desc (_ "Deleted file") + and set -l deleted_desc "Deleted file" contains -- deleted-staged $argv; or set -ql all_staged; and set -l deleted_staged - and set -l staged_deleted_desc (_ "Staged deleted file") + and set -l staged_deleted_desc "Staged deleted file" contains -- ignored $argv; and set -l ignored - and set -l ignored_desc (_ "Ignored file") + and set -l ignored_desc "Ignored file" contains -- renamed $argv; and set -l renamed - and set -l renamed_desc (_ "Renamed file") + and set -l renamed_desc "Renamed file" contains -- copied $argv; and set -l copied - and set -l copied_desc (_ "Copied file") + and set -l copied_desc "Copied file" # A literal "?" for use in `case`. set -l q '\\?' diff --git a/share/completions/launchctl.fish b/share/completions/launchctl.fish index 5636e0d38..f4768177e 100644 --- a/share/completions/launchctl.fish +++ b/share/completions/launchctl.fish @@ -1,45 +1,45 @@ -complete --command launchctl -n '__fish_use_subcommand' -xa 'bootstrap\t"'(_ "Bootstraps a domain or a service into a domain")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'bootout\t"'(_ "Tears down a domain or removes a service from a domain")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'enable\t"'(_ "Enables an existing service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'disable\t"'(_ "Disables an existing service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'uncache\t"'(_ "Removes the specified service name from the service cache")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'kickstart\t"'(_ "Forces an existing service to start")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'attach\t"'(_ "Attach the system's debugger to a service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'debug\t"'(_ "Configures the next invocation of a service for debugging")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'kill\t"'(_ "Sends a signal to the service instance")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'blame\t"'(_ "Prints the reason a service is running")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'print\t"'(_ "Prints a description of a domain or service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'print-cache\t"'(_ "Prints information about the service cache")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'print-disabled\t"'(_ "Prints which services are disabled")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'plist\t"'(_ "Prints a property list embedded in a binary (targets the Info.plist by default)")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'procinfo\t"'(_ "Prints port information about a process")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'hostinfo\t"'(_ "Prints port information about the host")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'resolveport\t"'(_ "Resolves a port name from a process to an endpoint in launchd")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'limit\t"'(_ "Reads or modifies launchd's resource limits")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'runstats\t"'(_ "Prints performance statistics for a service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'examine\t"'(_ "Runs the specified analysis tool against launchd in a non-reentrant manner")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'config\t"'(_ "Modifies persistent configuration parameters for launchd domains")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'dumpstate\t"'(_ "Dumps launchd state to stdout")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'dumpjpcategory\t"'(_ "Dumps the jetsam properties category for all services")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'reboot\t"'(_ "Initiates a system reboot of the specified type")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'bootshell\t"'(_ "Brings the system up from single-user mode with a console shell")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'load\t"'(_ "Bootstraps a service or directory of services")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'unload\t"'(_ "Unloads a service or directory of services")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'remove\t"'(_ "Unloads the specified service name")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'list\t"'(_ "Lists information about services")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'start\t"'(_ "Starts the specified service")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'stop\t"'(_ "Stops the specified service if it is running")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'setenv\t"'(_ "Sets the specified environment variables for all services within the domain")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'unsetenv\t"'(_ "Unsets the specified environment variables for all services within the domain")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'getenv\t"'(_ "Gets the value of an environment variable from within launchd")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'bsexec\t"'(_ "Execute a program in another process' bootstrap context")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'asuser\t"'(_ "Execute a program in the bootstrap context of a given user")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'submit\t"'(_ "Submit a basic job from the command line")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'managerpid\t"'(_ "Prints the PID of the launchd controlling the session")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'manageruid\t"'(_ "Prints the UID of the current launchd session")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'managername\t"'(_ "Prints the name of the current launchd session")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'error\t"'(_ "Prints a description of an error")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'variant\t"'(_ "Prints the launchd variant")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'version\t"'(_ "Prints the launchd version")'"' -complete --command launchctl -n '__fish_use_subcommand' -xa 'help\t"'(_ "Prints the usage for a given subcommand")'"' +complete --command launchctl -n '__fish_use_subcommand' -xa "bootstrap\tBootstraps a domain or a service into a domain" +complete --command launchctl -n '__fish_use_subcommand' -xa "bootout\tTears down a domain or removes a service from a domain" +complete --command launchctl -n '__fish_use_subcommand' -xa "enable\tEnables an existing service" +complete --command launchctl -n '__fish_use_subcommand' -xa "disable\tDisables an existing service" +complete --command launchctl -n '__fish_use_subcommand' -xa "uncache\tRemoves the specified service name from the service cache" +complete --command launchctl -n '__fish_use_subcommand' -xa "kickstart\tForces an existing service to start" +complete --command launchctl -n '__fish_use_subcommand' -xa "attach\tAttach the system's debugger to a service" +complete --command launchctl -n '__fish_use_subcommand' -xa "debug\tConfigures the next invocation of a service for debugging" +complete --command launchctl -n '__fish_use_subcommand' -xa "kill\tSends a signal to the service instance" +complete --command launchctl -n '__fish_use_subcommand' -xa "blame\tPrints the reason a service is running" +complete --command launchctl -n '__fish_use_subcommand' -xa "print\tPrints a description of a domain or service" +complete --command launchctl -n '__fish_use_subcommand' -xa "print-cache\tPrints information about the service cache" +complete --command launchctl -n '__fish_use_subcommand' -xa "print-disabled\tPrints which services are disabled" +complete --command launchctl -n '__fish_use_subcommand' -xa "plist\tPrints a property list embedded in a binary (targets the Info.plist by default)" +complete --command launchctl -n '__fish_use_subcommand' -xa "procinfo\tPrints port information about a process" +complete --command launchctl -n '__fish_use_subcommand' -xa "hostinfo\tPrints port information about the host" +complete --command launchctl -n '__fish_use_subcommand' -xa "resolveport\tResolves a port name from a process to an endpoint in launchd" +complete --command launchctl -n '__fish_use_subcommand' -xa "limit\tReads or modifies launchd's resource limits" +complete --command launchctl -n '__fish_use_subcommand' -xa "runstats\tPrints performance statistics for a service" +complete --command launchctl -n '__fish_use_subcommand' -xa "examine\tRuns the specified analysis tool against launchd in a non-reentrant manner" +complete --command launchctl -n '__fish_use_subcommand' -xa "config\tModifies persistent configuration parameters for launchd domains" +complete --command launchctl -n '__fish_use_subcommand' -xa "dumpstate\tDumps launchd state to stdout" +complete --command launchctl -n '__fish_use_subcommand' -xa "dumpjpcategory\tDumps the jetsam properties category for all services" +complete --command launchctl -n '__fish_use_subcommand' -xa "reboot\tInitiates a system reboot of the specified type" +complete --command launchctl -n '__fish_use_subcommand' -xa "bootshell\tBrings the system up from single-user mode with a console shell" +complete --command launchctl -n '__fish_use_subcommand' -xa "load\tBootstraps a service or directory of services" +complete --command launchctl -n '__fish_use_subcommand' -xa "unload\tUnloads a service or directory of services" +complete --command launchctl -n '__fish_use_subcommand' -xa "remove\tUnloads the specified service name" +complete --command launchctl -n '__fish_use_subcommand' -xa "list\tLists information about services" +complete --command launchctl -n '__fish_use_subcommand' -xa "start\tStarts the specified service" +complete --command launchctl -n '__fish_use_subcommand' -xa "stop\tStops the specified service if it is running" +complete --command launchctl -n '__fish_use_subcommand' -xa "setenv\tSets the specified environment variables for all services within the domain" +complete --command launchctl -n '__fish_use_subcommand' -xa "unsetenv\tUnsets the specified environment variables for all services within the domain" +complete --command launchctl -n '__fish_use_subcommand' -xa "getenv\tGets the value of an environment variable from within launchd" +complete --command launchctl -n '__fish_use_subcommand' -xa "bsexec\tExecute a program in another process' bootstrap context" +complete --command launchctl -n '__fish_use_subcommand' -xa "asuser\tExecute a program in the bootstrap context of a given user" +complete --command launchctl -n '__fish_use_subcommand' -xa "submit\tSubmit a basic job from the command line" +complete --command launchctl -n '__fish_use_subcommand' -xa "managerpid\tPrints the PID of the launchd controlling the session" +complete --command launchctl -n '__fish_use_subcommand' -xa "manageruid\tPrints the UID of the current launchd session" +complete --command launchctl -n '__fish_use_subcommand' -xa "managername\tPrints the name of the current launchd session" +complete --command launchctl -n '__fish_use_subcommand' -xa "error\tPrints a description of an error" +complete --command launchctl -n '__fish_use_subcommand' -xa "variant\tPrints the launchd variant" +complete --command launchctl -n '__fish_use_subcommand' -xa "version\tPrints the launchd version" +complete --command launchctl -n '__fish_use_subcommand' -xa "help\tPrints the usage for a given subcommand" diff --git a/share/completions/mdadm.fish b/share/completions/mdadm.fish index 320f3debd..98d0cfcaf 100644 --- a/share/completions/mdadm.fish +++ b/share/completions/mdadm.fish @@ -10,37 +10,37 @@ # as their absence has already been checked, because this absence caused evaluation of __fish_not_contain_opt function __fish_mdadm_metadata_options - echo -e "0\t"(_ "Use original 0.90 format superblock") - echo -e "0.90\t"(_ "Use original 0.90 format superblock") - echo -e "1\t"(_ "Use last 1.x format superblock") - echo -e "default\t"(_ "Use last 1.x format superblock") - echo -e "1.0\t"(_ "Use 1.0 format superblock") - echo -e "1.1\t"(_ "Use 1.1 format superblock") - echo -e "1.2\t"(_ "Use 1.2 format superblock") - echo -e "ddf\t"(_ "Use DDF (Disk Data Format) format") - echo -e "imsm\t"(_ "Use Intel(R) Matrix Storage Manager format") + echo -e "0\tUse original 0.90 format superblock" + echo -e "0.90\tUse original 0.90 format superblock" + echo -e "1\tUse last 1.x format superblock" + echo -e "default\tUse last 1.x format superblock" + echo -e "1.0\tUse 1.0 format superblock" + echo -e "1.1\tUse 1.1 format superblock" + echo -e "1.2\tUse 1.2 format superblock" + echo -e "ddf\tUse DDF (Disk Data Format) format" + echo -e "imsm\tUse Intel(R) Matrix Storage Manager format" end function __fish_mdadm_level_options - echo -e "linear\t"(_ "JBOD") - echo -e "raid0\t"(_ "Stripped volume (RAID 0)") - echo -e "0\t"(_ "Stripped volume (RAID 0)") - echo -e "stripe\t"(_ "Stripped volume (RAID 0)") - echo -e "raid1\t"(_ "Mirrored volume (RAID 1)") - echo -e "1\t"(_ "Mirrored volume (RAID 1)") - echo -e "mirror\t"(_ "Mirrored volume (RAID 1)") - echo -e "raid4\t"(_ "Stripped volume with parity disk (RAID 4)") - echo -e "4\t"(_ "Stripped volume with parity disk (RAID 4)") - echo -e "raid5\t"(_ "Stripped volume with distributed parity (RAID 5)") - echo -e "5\t"(_ "Stripped volume with distributed parity (RAID 5)") - echo -e "raid6\t"(_ "Stripped volume with double distributed parity (RAID 5)") - echo -e "6\t"(_ "Stripped volume with double distributed parity (RAID 5)") - echo -e "raid10\t"(_ "Mirrored stripped volume (RAID 10)") - echo -e "10\t"(_ "Mirrored stripped volume (RAID 10)") - echo -e "multipath\t"(_ "Multiple access device, AKA multipath (deprecated)") - echo -e "mp\t"(_ "Multiple access device, AKA multipath (deprecated)") - echo -e "faulty\t"(_ "Pseudo RAID layer for single device (akin faulty RAID 1)") - echo -e "container\t"(_ "Container") # To be clarified + echo -e "linear\tJBOD" + echo -e "raid0\tStripped volume (RAID 0)" + echo -e "0\tStripped volume (RAID 0)" + echo -e "stripe\tStripped volume (RAID 0)" + echo -e "raid1\tMirrored volume (RAID 1)" + echo -e "1\tMirrored volume (RAID 1)" + echo -e "mirror\tMirrored volume (RAID 1)" + echo -e "raid4\tStripped volume with parity disk (RAID 4)" + echo -e "4\tStripped volume with parity disk (RAID 4)" + echo -e "raid5\tStripped volume with distributed parity (RAID 5)" + echo -e "5\tStripped volume with distributed parity (RAID 5)" + echo -e "raid6\tStripped volume with double distributed parity (RAID 5)" + echo -e "6\tStripped volume with double distributed parity (RAID 5)" + echo -e "raid10\tMirrored stripped volume (RAID 10)" + echo -e "10\tMirrored stripped volume (RAID 10)" + echo -e "multipath\tMultiple access device, AKA multipath (deprecated)" + echo -e "mp\tMultiple access device, AKA multipath (deprecated)" + echo -e "faulty\tPseudo RAID layer for single device (akin faulty RAID 1)" + echo -e "container\tContainer" # To be clarified end function __fish_mdadm_layout_options # To be clarified @@ -48,10 +48,10 @@ function __fish_mdadm_layout_options # To be clarified echo -e "left-symmetric" echo -e "right-asymmetric" echo -e "right-symmetric" - echo -e "la\t"(_ "Alias of left-asymmetric") - echo -e "ra\t"(_ "Alias of right-asymmetric") - echo -e "ls\t"(_ "Alias of left-symmetric") - echo -e "rs\t"(_ "Alias of right-symmetric") + echo -e "la\tAlias of left-asymmetric" + echo -e "ra\tAlias of right-asymmetric" + echo -e "ls\tAlias of left-symmetric" + echo -e "rs\tAlias of right-symmetric" echo -e "parity-first" echo -e "parity-last" echo -e "ddf-zero-restart" @@ -63,16 +63,16 @@ function __fish_mdadm_layout_options # To be clarified echo -e "right-asymmetric-6" echo -e "parity-first-6" echo -e "write-transient" - echo -e "wt\t"(_ "Alias of write-transient") + echo -e "wt\tAlias of write-transient" echo -e "read-transient" - echo -e "rt\t"(_ "Alias of read-transient") + echo -e "rt\tAlias of read-transient" echo -e "write-persistent" - echo -e "wp\t"(_ "Alias of write-persistent") + echo -e "wp\tAlias of write-persistent" echo -e "read-persistent" - echo -e "rp\t"(_ "Alias of read-persistent") + echo -e "rp\tAlias of read-persistent" echo -e "write-all" echo -e "read-fixable" - echo -e "rf\t"(_ "Alias of read-fixable") + echo -e "rf\tAlias of read-fixable" echo -e "clear" echo -e "flush" echo -e "none" @@ -84,36 +84,36 @@ function __fish_mdadm_layout_options # To be clarified end function __fish_mdadm_level_options - echo -e "yes\t"(_ "Use standard format (default)") - echo -e "md\t"(_ "Use a non-partitionable array") - echo -e "mdp\t"(_ "Use a partitionable array") - echo -e "part\t"(_ "Use a partitionable array") - echo -e "p\t"(_ "Use a partitionable array") + echo -e "yes\tUse standard format (default)" + echo -e "md\tUse a non-partitionable array" + echo -e "mdp\tUse a partitionable array" + echo -e "part\tUse a partitionable array" + echo -e "p\tUse a partitionable array" end function __fish_mdadm_update_options - echo -e "sparc2.2\t"(_ "Remove superblock misalignement from SPARC kernel 2.2") - echo -e "summaries\t"(_ "Correct superblock summaries") - echo -e "uuid\t"(_ "Update array UUID") - echo -e "name\t"(_ "Update array name") - echo -e "nodes\t"(_ "Update array nodes") - echo -e "homehost\t"(_ "Update array homehost") - echo -e "home-cluster\t"(_ "Update array cluster name") - echo -e "resync\t"(_ "Mark the array as dirty, thus forcing resync") - echo -e "byteorder\t"(_ "Reverse superblock endianness") - echo -e "devicesize\t"(_ "Refresh device size") - echo -e "no-bitmap\t"(_ "Assume bitmap absence") - echo -e "bbl\t"(_ "Reserve space for bad block list") - echo -e "no-bbl\t"(_ "Free reserved space for bad block list") - echo -e "metadata\t"(_ "Convert 0.90 metadata to 1.0") - echo -e "super-minor\t"(_ "Reset preferred minor to current one") + echo -e "sparc2.2\tRemove superblock misalignement from SPARC kernel 2.2" + echo -e "summaries\tCorrect superblock summaries" + echo -e "uuid\tUpdate array UUID" + echo -e "name\tUpdate array name" + echo -e "nodes\tUpdate array nodes" + echo -e "homehost\tUpdate array homehost" + echo -e "home-cluster\tUpdate array cluster name" + echo -e "resync\tMark the array as dirty, thus forcing resync" + echo -e "byteorder\tReverse superblock endianness" + echo -e "devicesize\tRefresh device size" + echo -e "no-bitmap\tAssume bitmap absence" + echo -e "bbl\tReserve space for bad block list" + echo -e "no-bbl\tFree reserved space for bad block list" + echo -e "metadata\tConvert 0.90 metadata to 1.0" + echo -e "super-minor\tReset preferred minor to current one" end function __fish_mdadm_action_options - echo -e "idle\t"(_ "Abort currently running actions") - echo -e "frozen\t"(_ "Abort currently running actions, prevent their restart") - echo -e "check\t"(_ "Scrub the array (i.e. check constistency)") - echo -e "repair\t"(_ "Check, then resync") + echo -e "idle\tAbort currently running actions" + echo -e "frozen\tAbort currently running actions, prevent their restart" + echo -e "check\tScrub the array (i.e. check constistency)" + echo -e "repair\tCheck, then resync" end # In the next 7 lines, the tested option is maintained into the search list to prevent suggesting it if it has already been used, as they cannot be used twice diff --git a/share/completions/set.fish b/share/completions/set.fish index 3128fa67d..f39a17579 100644 --- a/share/completions/set.fish +++ b/share/completions/set.fish @@ -108,5 +108,5 @@ complete -c set -n '__fish_set_is_color' -s b -l background -x -a '(set_color -- complete -c set -n '__fish_set_is_color' -s o -l bold -d 'Make font bold' # Locale completions -complete -c set -n '__fish_set_is_locale; and not __fish_seen_argument -s e -l erase' -x -a '(locale -a)' -d (_ "Locale") +complete -c set -n '__fish_set_is_locale; and not __fish_seen_argument -s e -l erase' -x -a '(locale -a)' -d "Locale" complete -c set -s L -l long -d 'Do not truncate long lines' diff --git a/share/completions/tar.fish b/share/completions/tar.fish index abeeb478d..652dff911 100644 --- a/share/completions/tar.fish +++ b/share/completions/tar.fish @@ -7,7 +7,7 @@ function __fish_complete_tar -d "Peek inside of archives and list all files" if test -f $args[1] set -l file_list (tar -atf $args[1] 2> /dev/null) if test -n "$file_list" - printf (_ "%s\tArchived file\n") $file_list + printf "%s\tArchived file\n" $file_list end return end diff --git a/share/completions/unrar.fish b/share/completions/unrar.fish index 41d85cc73..aeabcd8ca 100644 --- a/share/completions/unrar.fish +++ b/share/completions/unrar.fish @@ -9,7 +9,7 @@ function __fish_complete_unrar -d "Peek inside of archives and list all files" case '*.rar' if test -f $i set -l file_list (unrar vb $i) - printf (_ "%s\tArchived file\n") $file_list + printf "%s\tArchived file\n" $file_list end return end diff --git a/share/completions/update-eix-remote.fish b/share/completions/update-eix-remote.fish index f2b33bdfa..733218390 100644 --- a/share/completions/update-eix-remote.fish +++ b/share/completions/update-eix-remote.fish @@ -5,13 +5,17 @@ ########## # UPDATE-EIX-REMOTE -##### # Options complete -c update-eix-remote -s q -d "Be quiet" complete -c update-eix-remote -s v -d "Be verbose (default)" complete -c update-eix-remote -s u -xua '(__fish_print_users)' -d "Call wget as the given USER" complete -c update-eix-remote -s o -d "Use the given PATH as $OVERLAYPARENT" -##### + # Subcommands -complete -c update-eix-remote -xa 'update\t"'(_ "Fetch the eix-caches of some layman overlays into a temporary file resp. into FILE and add them to the eix database")'" fetch\t"'(_ "Only fetch the overlays into FILE")'" add\t"'(_ "Only add the overlays from FILE to the eix database")'" remove\t"'(_ "Remove all temporarily added virtual overlays from the eix database")'"' -########## +set -l subcmds " +" +complete -c update-eix-remote -xa \ + 'update\t"Fetch the eix-caches of some layman overlays into a temporary file resp. into FILE and add them to the eix database" + fetch\t"Only fetch the overlays into FILE" + add\t"Only add the overlays from FILE to the eix database" + remove\t"Remove all temporarily added virtual overlays from the eix database"' diff --git a/share/completions/zfs.fish b/share/completions/zfs.fish index b18f8101a..c167994aa 100644 --- a/share/completions/zfs.fish +++ b/share/completions/zfs.fish @@ -48,73 +48,73 @@ function __fish_zfs_using_command # ZFS command whose completions are looked for end function __fish_zfs_list_dataset_types - echo -e "filesystem\t"(_ "ZFS filesystem") - echo -e "snapshot\t"(_ "ZFS filesystem snapshot") - echo -e "volume\t"(_ "ZFS block storage device") - echo -e "bookmark\t"(_ "ZFS snapshot bookmark") - echo -e "all\t"(_ "Any ZFS dataset") + echo -e "filesystem\tZFS filesystem" + echo -e "snapshot\tZFS filesystem snapshot" + echo -e "volume\tZFS block storage device" + echo -e "bookmark\tZFS snapshot bookmark" + echo -e "all\tAny ZFS dataset" end function __fish_zfs_list_source_types - echo -e "local\t"(_ "Dataset-specific value") - echo -e "default\t"(_ "Default ZFS value") - echo -e "inherited\t"(_ "Value inherited from parent dataset") - echo -e "received\t"(_ "Value received by 'zfs receive'") - echo -e "temporary\t"(_ "Value valid for the current mount") - echo -e "none\t"(_ "Read-only value") + echo -e "local\tDataset-specific value" + echo -e "default\tDefault ZFS value" + echo -e "inherited\tValue inherited from parent dataset" + echo -e "received\tValue received by 'zfs receive'" + echo -e "temporary\tValue valid for the current mount" + echo -e "none\tRead-only value" end function __fish_zfs_list_get_fields - echo -e "name\t"(_ "Dataset full name") - echo -e "property\t"(_ "Property") - echo -e "value\t"(_ "Property value") - echo -e "source\t"(_ "Property value origin") + echo -e "name\tDataset full name" + echo -e "property\tProperty" + echo -e "value\tProperty value" + echo -e "source\tProperty value origin" end function __fish_zfs_list_space_fields - echo -e "type\t"(_ "Identity type") - echo -e "name\t"(_ "Identity name") - echo -e "used\t"(_ "Space usage") - echo -e "quota\t"(_ "Space quota") + echo -e "type\tIdentity type" + echo -e "name\tIdentity name" + echo -e "used\tSpace usage" + echo -e "quota\tSpace quota" end function __fish_zfs_list_userspace_types - echo -e "posixuser\t"(_ "POSIX user") - echo -e "smbuser\t"(_ "Samba user") - echo -e "all\t"(_ "Both types") + echo -e "posixuser\tPOSIX user" + echo -e "smbuser\tSamba user" + echo -e "all\tBoth types" end function __fish_zfs_list_groupspace_types - echo -e "posixgroup\t"(_ "POSIX group") - echo -e "smbgroup\t"(_ "Samba group") - echo -e "all\t"(_ "Both types") + echo -e "posixgroup\tPOSIX group" + echo -e "smbgroup\tSamba group" + echo -e "all\tBoth types" end function __fish_zfs_list_permissions -V OS - echo -e "allow\t"(_ "Also needs the permission to be allowed") - echo -e "clone\t"(_ "Also needs the 'create' and 'mount' permissions in the origin filesystem") - echo -e "create\t"(_ "Also needs the 'mount' permission") - echo -e "destroy\t"(_ "Also needs the 'mount' permission") + echo -e "allow\tAlso needs the permission to be allowed" + echo -e "clone\tAlso needs the 'create' and 'mount' permissions in the origin filesystem" + echo -e "create\tAlso needs the 'mount' permission" + echo -e "destroy\tAlso needs the 'mount' permission" echo -e "mount" - echo -e "promote\t"(_ "Also needs the 'promote' and 'mount' permissions in the origin filesystem") - echo -e "receive\t"(_ "Also needs the 'create' and 'mount' permissions") - echo -e "rename\t"(_ "Also needs the 'create' and 'mount' permissions in the new parent") - echo -e "rollback\t"(_ "Also needs the 'mount' permission") + echo -e "promote\tAlso needs the 'promote' and 'mount' permissions in the origin filesystem" + echo -e "receive\tAlso needs the 'create' and 'mount' permissions" + echo -e "rename\tAlso needs the 'create' and 'mount' permissions in the new parent" + echo -e "rollback\tAlso needs the 'mount' permission" echo -e "send" - echo -e "share\t"(_ "For SMB and NFS shares") - echo -e "snapshot\t"(_ "Also needs the 'mount' permission") + echo -e "share\tFor SMB and NFS shares" + echo -e "snapshot\tAlso needs the 'mount' permission" echo -e "groupquota" echo -e "groupused" - echo -e "userprop\t"(_ "Allows changing any user property") + echo -e "userprop\tAllows changing any user property" echo -e "userquota" echo -e "userused" # The remaining code of the function is almost a duplicate of __fish_complete_zfs_rw_properties and __fish_complete_zfs_ro_properties, but almost only, hence the duplication # RO properties - echo -e "volblocksize\t"(_ "Volume block size") + echo -e "volblocksize\tVolume block size" # R/W properties - echo -e "aclinherit\t"(_ "Inheritance of ACL entries")" (discard, noallow, restricted, passthrough, passthrough-x)" - echo -e "atime\t"(_ "Update access time on read")" (on, off)" - echo -e "canmount\t"(_ "Is the dataset mountable")" (on, off, noauto)" + echo -e "aclinherit\tInheritance of ACL entries (discard, noallow, restricted, passthrough, passthrough-x)" + echo -e "atime\tUpdate access time on read (on, off)" + echo -e "canmount\tIs the dataset mountable (on, off, noauto)" set -l additional_cksum_algs '' set -l additional_dedup_algs '' if contains -- $OS FreeBSD SunOS @@ -132,67 +132,67 @@ function __fish_zfs_list_permissions -V OS set additional_cksum_algs "$additional_cksum_algs, edonr" set additional_dedup_algs "$additional_dedup_algs, edonr[,verify]" end - echo -e "checksum\t"(_ "Data checksum")" (on, off, fletcher2, fletcher4, sha256$additional_cksum_algs)" + echo -e "checksum\tData checksum (on, off, fletcher2, fletcher4, sha256$additional_cksum_algs)" set -e additional_cksum_algs set -l additional_compress_algs '' if __fish_is_zfs_feature_enabled "feature@lz4_compress" set additional_compress_algs ", lz4" end - echo -e "compression\t"(_ "Compression algorithm")" (on, off, lzjb$additional_compress_algs, gzip, gzip-[1-9], zle)" + echo -e "compression\tCompression algorithm (on, off, lzjb$additional_compress_algs, gzip, gzip-[1-9], zle)" set -e additional_compress_algs - echo -e "copies\t"(_ "Number of copies of data")" (1, 2, 3)" - echo -e "dedup\t"(_ "Deduplication")" (on, off, verify, sha256[,verify]$additional_dedup_algs)" + echo -e "copies\tNumber of copies of data (1, 2, 3)" + echo -e "dedup\tDeduplication (on, off, verify, sha256[,verify]$additional_dedup_algs)" set -e additional_dedup_algs - echo -e "devices\t"(_ "Are contained device nodes openable")" (on, off)" - echo -e "exec\t"(_ "Can contained executables be executed")" (on, off)" - echo -e "filesystem_limit\t"(_ "Max number of filesystems and volumes")" (COUNT, none)" - echo -e "mountpoint\t"(_ "Mountpoint")" (PATH, none, legacy)" - echo -e "primarycache\t"(_ "Which data to cache in ARC")" (all, none, metadata)" - echo -e "quota\t"(_ "Max size of dataset and children")" (SIZE, none)" - echo -e "snapshot_limit\t"(_ "Max number of snapshots")" (COUNT, none)" - echo -e "readonly\t"(_ "Read-only")" (on, off)" - echo -e "recordsize\t"(_ "Suggest block size")" (SIZE)" - echo -e "redundant_metadata\t"(_ "How redundant are the metadata")" (all, most)" - echo -e "refquota\t"(_ "Max space used by dataset itself")" (SIZE, none)" - echo -e "refreservation\t"(_ "Min space guaranteed to dataset itself")" (SIZE, none)" - echo -e "reservation\t"(_ "Min space guaranteed to dataset")" (SIZE, none)" - echo -e "secondarycache\t"(_ "Which data to cache in L2ARC")" (all, none, metadata)" - echo -e "setuid\t"(_ "Respect set-UID bit")" (on, off)" - echo -e "sharenfs\t"(_ "Share in NFS")" (on, off, OPTS)" - echo -e "logbias\t"(_ "Hint for handling of synchronous requests")" (latency, throughput)" - echo -e "snapdir\t"(_ "Hide .zfs directory")" (hidden, visible)" - echo -e "sync\t"(_ "Handle of synchronous requests")" (standard, always, disabled)" - echo -e "volsize\t"(_ "Volume logical size")" (SIZE)" + echo -e "devices\tAre contained device nodes openable (on, off)" + echo -e "exec\tCan contained executables be executed (on, off)" + echo -e "filesystem_limit\tMax number of filesystems and volumes (COUNT, none)" + echo -e "mountpoint\tMountpoint (PATH, none, legacy)" + echo -e "primarycache\tWhich data to cache in ARC (all, none, metadata)" + echo -e "quota\tMax size of dataset and children (SIZE, none)" + echo -e "snapshot_limit\tMax number of snapshots (COUNT, none)" + echo -e "readonly\tRead-only (on, off)" + echo -e "recordsize\tSuggest block size (SIZE)" + echo -e "redundant_metadata\tHow redundant are the metadata (all, most)" + echo -e "refquota\tMax space used by dataset itself (SIZE, none)" + echo -e "refreservation\tMin space guaranteed to dataset itself (SIZE, none)" + echo -e "reservation\tMin space guaranteed to dataset (SIZE, none)" + echo -e "secondarycache\tWhich data to cache in L2ARC (all, none, metadata)" + echo -e "setuid\tRespect set-UID bit (on, off)" + echo -e "sharenfs\tShare in NFS (on, off, OPTS)" + echo -e "logbias\tHint for handling of synchronous requests (latency, throughput)" + echo -e "snapdir\tHide .zfs directory (hidden, visible)" + echo -e "sync\tHandle of synchronous requests (standard, always, disabled)" + echo -e "volsize\tVolume logical size (SIZE)" if test $OS = "SunOS" - echo -e "zoned\t"(_ "Managed from a non-global zone")" (on, off)" - echo -e "mlslabel\t"(_ "Can the dataset be mounted in a zone with Trusted Extensions enabled")" (LABEL, none)" - echo -e "nbmand\t"(_ "Mount with Non Blocking mandatory locks")" (on, off)" - echo -e "sharesmb\t"(_ "Share in Samba")" (on, off)" - echo -e "shareiscsi\t"(_ "Share as an iSCSI target")" (on, off)" - echo -e "version\t"(_ "On-disk version of filesystem")" (1, 2, current)" - echo -e "vscan\t"(_ "Scan regular files for viruses on opening and closing")" (on, off)" - echo -e "xattr\t"(_ "Extended attributes")" (on, off, sa)" + echo -e "zoned\tManaged from a non-global zone (on, off)" + echo -e "mlslabel\tCan the dataset be mounted in a zone with Trusted Extensions enabled (LABEL, none)" + echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)" + echo -e "sharesmb\tShare in Samba (on, off)" + echo -e "shareiscsi\tShare as an iSCSI target (on, off)" + echo -e "version\tOn-disk version of filesystem (1, 2, current)" + echo -e "vscan\tScan regular files for viruses on opening and closing (on, off)" + echo -e "xattr\tExtended attributes (on, off, sa)" else if test $OS = "Linux" - echo -e "acltype\t"(_ "Use no ACL or POSIX ACL")" (noacl, posixacl)" - echo -e "nbmand\t"(_ "Mount with Non Blocking mandatory locks")" (on, off)" - echo -e "relatime\t"(_ "Sometimes update access time on read")" (on, off)" - echo -e "shareiscsi\t"(_ "Share as an iSCSI target")" (on, off)" - echo -e "sharesmb\t"(_ "Share in Samba")" (on, off)" - echo -e "snapdev\t"(_ "Hide volume snapshots")" (hidden, visible)" - echo -e "version\t"(_ "On-disk version of filesystem")" (1, 2, current)" - echo -e "vscan\t"(_ "Scan regular files for viruses on opening and closing")" (on, off)" - echo -e "xattr\t"(_ "Extended attributes")" (on, off, sa)" + echo -e "acltype\tUse no ACL or POSIX ACL (noacl, posixacl)" + echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)" + echo -e "relatime\tSometimes update access time on read (on, off)" + echo -e "shareiscsi\tShare as an iSCSI target (on, off)" + echo -e "sharesmb\tShare in Samba (on, off)" + echo -e "snapdev\tHide volume snapshots (hidden, visible)" + echo -e "version\tOn-disk version of filesystem (1, 2, current)" + echo -e "vscan\tScan regular files for viruses on opening and closing (on, off)" + echo -e "xattr\tExtended attributes (on, off, sa)" else if test $OS = "FreeBSD" - echo -e "aclmode\t"(_ "How is ACL modified by chmod")" (discard, groupmask, passthrough, restricted)" - echo -e "volmode\t"(_ "How to expose volumes to OS")" (default, geom, dev, none)" + echo -e "aclmode\tHow is ACL modified by chmod (discard, groupmask, passthrough, restricted)" + echo -e "volmode\tHow to expose volumes to OS (default, geom, dev, none)" end # Write-once properties - echo -e "normalization\t"(_ "Unicode normalization")" (none, formC, formD, formKC, formKD)" - echo -e "utf8only\t"(_ "Reject non-UTF-8-compliant filenames")" (on, off)" + echo -e "normalization\tUnicode normalization (none, formC, formD, formKC, formKD)" + echo -e "utf8only\tReject non-UTF-8-compliant filenames (on, off)" if test $OS = "Linux" - echo -e "casesensitivity\t"(_ "Case sensitivity")" (sensitive, insensitive)" + echo -e "casesensitivity\tCase sensitivity (sensitive, insensitive)" else # FreeBSD, SunOS and virtually all others - echo -e "casesensitivity\t"(_ "Case sensitivity")" (sensitive, insensitive, mixed)" + echo -e "casesensitivity\tCase sensitivity (sensitive, insensitive, mixed)" end # Permissions set; if none are found, or if permission sets are not supported, no output is expected, even an error for i in (zpool list -o name -H) @@ -315,10 +315,10 @@ complete -c zfs -x -n '__fish_zfs_using_command rename' -d 'Dataset to rename' - complete -c zfs -f -n '__fish_zfs_using_command list' -s H -d 'Print output in a machine-parsable format' complete -c zfs -f -n '__fish_zfs_using_command list' -s r -d 'Operate recursively on datasets' complete -c zfs -x -n '__fish_zfs_using_command list; and __fish_contains_opt -s r' -s d -d 'Maximum recursion depth' -complete -c zfs -x -n '__fish_zfs_using_command list' -s o -d 'Property to list' -a '(__fish_append , (__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\t"(_ "Dataset name")"; echo -e "space\t"(_ "Space properties")"))' +complete -c zfs -x -n '__fish_zfs_using_command list' -s o -d 'Property to list' -a '(__fish_append , (__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\tDataset name""; echo -e "space\tSpace properties"")' complete -c zfs -f -n '__fish_zfs_using_command list' -s p -d 'Print parsable (exact) values for numbers' -complete -c zfs -x -n '__fish_zfs_using_command list; and __fish_not_contain_opt -s S' -s s -d 'Property to use for sorting output by ascending order' -a '(__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\t"(_ "Dataset name"))' -complete -c zfs -x -n '__fish_zfs_using_command list; and __fish_not_contain_opt -s s' -s S -d 'Property to use for sorting output by descending order' -a '(__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\t"(_ "Dataset name"))' +complete -c zfs -x -n '__fish_zfs_using_command list; and __fish_not_contain_opt -s S' -s s -d 'Property to use for sorting output by ascending order' -a '(__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\tDataset name")' +complete -c zfs -x -n '__fish_zfs_using_command list; and __fish_not_contain_opt -s s' -s S -d 'Property to use for sorting output by descending order' -a '(__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo -e "name\tDataset name")' complete -c zfs -x -n '__fish_zfs_using_command list' -s t -d 'Dataset type' -a '(__fish_zfs_list_dataset_types)' complete -c zfs -x -n '__fish_zfs_using_command list' -d 'Dataset which properties is to be listed' -a '(__fish_print_zfs_filesystems; __fish_print_zfs_volumes; __fish_print_zfs_snapshots)' @@ -334,7 +334,7 @@ complete -c zfs -x -n '__fish_zfs_using_command get' -s o -d 'Fields to display' complete -c zfs -x -n '__fish_zfs_using_command get' -s s -d 'Property source to display' -a '(__fish_append , (__fish_zfs_list_source_types))' complete -c zfs -f -n '__fish_zfs_using_command get' -s p -d 'Print parsable (exact) values for numbers' complete -c zfs -x -n '__fish_zfs_using_command get' -s t -d 'Dataset type' -a '(__fish_append , (__fish_zfs_list_dataset_types))' -complete -c zfs -x -n '__fish_zfs_using_command get' -d 'Property to get' -a '(__fish_append , (__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo "all"))' +complete -c zfs -x -n '__fish_zfs_using_command get' -d 'Property to get' -a '(__fish_append , (__fish_complete_zfs_rw_properties; __fish_complete_zfs_write_once_properties; __fish_complete_zfs_ro_properties; echo "all")' complete -c zfs -x -n '__fish_zfs_using_command get' -d 'Dataset which properties is to be got' -a '(__fish_print_zfs_filesystems; __fish_print_zfs_volumes; __fish_print_zfs_snapshots)' # inherit completions diff --git a/share/completions/zpool.fish b/share/completions/zpool.fish index 5c3a05ad6..3221bf9ee 100644 --- a/share/completions/zpool.fish +++ b/share/completions/zpool.fish @@ -96,73 +96,73 @@ function __fish_zpool_complete_vdevs end function __fish_zpool_list_get_fields - echo -e "name\t"(_ "Pool full name") - echo -e "property\t"(_ "Property") - echo -e "value\t"(_ "Property value") - echo -e "source\t"(_ "Property value origin") + echo -e "name\tPool full name" + echo -e "property\tProperty" + echo -e "value\tProperty value" + echo -e "source\tProperty value origin" end function __fish_zpool_list_vdev_types - echo -e "mirror\t"(_ "Mirror of at least two devices") - echo -e "raidz\t"(_ "ZFS RAID-5 variant, single parity") - echo -e "raidz1\t"(_ "ZFS RAID-5 variant, single parity") - echo -e "raidz2\t"(_ "ZFS RAID-5 variant, double parity") - echo -e "raidz3\t"(_ "ZFS RAID-5 variant, triple parity") - echo -e "spare\t"(_ "Pseudo vdev for pool hot spares") - echo -e "log\t"(_ "SLOG device") - echo -e "cache\t"(_ "L2ARC device") + echo -e "mirror\tMirror of at least two devices" + echo -e "raidz\tZFS RAID-5 variant, single parity" + echo -e "raidz1\tZFS RAID-5 variant, single parity" + echo -e "raidz2\tZFS RAID-5 variant, double parity" + echo -e "raidz3\tZFS RAID-5 variant, triple parity" + echo -e "spare\tPseudo vdev for pool hot spares" + echo -e "log\tSLOG device" + echo -e "cache\tL2ARC device" end function __fish_zpool_list_ro_properties - echo -e "alloc\t"(_ "Physically allocated space") + echo -e "alloc\tPhysically allocated space" if contains -- $OS SunOS Linux - echo -e "available\t"(_ "Available space") - echo -e "avail\t"(_ "Available space") + echo -e "available\tAvailable space" + echo -e "avail\tAvailable space" end if test $OS = 'SunOS' - echo -e "bootsize\t"(_ "System boot partition size") + echo -e "bootsize\tSystem boot partition size" end - echo -e "capacity\t"(_ "Usage percentage of pool") - echo -e "dedupratio\t"(_ "Deduplication ratio") - echo -e "expandsize\t"(_ "Amount of uninitialized space within the pool") - echo -e "fragmentation\t"(_ "Fragmentation percentage of pool") - echo -e "free\t"(_ "Free pool space") - echo -e "freeing\t"(_ "Remaining pool space to be freed") - echo -e "guid\t"(_ "Pool GUID") - echo -e "health\t"(_ "Current pool health") - echo -e "size\t"(_ "Total pool space") - echo -e "used\t"(_ "Used pool space") + echo -e "capacity\tUsage percentage of pool" + echo -e "dedupratio\tDeduplication ratio" + echo -e "expandsize\tAmount of uninitialized space within the pool" + echo -e "fragmentation\tFragmentation percentage of pool" + echo -e "free\tFree pool space" + echo -e "freeing\tRemaining pool space to be freed" + echo -e "guid\tPool GUID" + echo -e "health\tCurrent pool health" + echo -e "size\tTotal pool space" + echo -e "used\tUsed pool space" # Unsupported features zpool list -o all | head -n1 | string replace -ra ' +' '\n' | string lower | string match -r unsupported end function __fish_zpool_list_device_properties - echo -e "ashift\t"(_ "Pool sector size exponent")" (COUNT)" + echo -e "ashift\tPool sector size exponent (COUNT)" end function __fish_zpool_list_writeonce_properties - echo -e "altroot\t"(_ "Alternate root directory")" (PATH)" + echo -e "altroot\tAlternate root directory (PATH)" end function __fish_zpool_list_importtime_properties - echo -e "altroot\t"(_ "Alternate root directory")" (PATH)" - echo -e "readonly\t"(_ "Import pool in read-only mode")" (on, off)" - echo -e "rdonly\t"(_ "Import pool in read-only mode")" (on, off)" + echo -e "altroot\tAlternate root directory (PATH)" + echo -e "readonly\tImport pool in read-only mode (on, off)" + echo -e "rdonly\tImport pool in read-only mode (on, off)" end function __fish_zpool_list_rw_properties - echo -e "autoexpand\t"(_ "Automatic pool expansion on LUN growing")" (on, off)" - echo -e "expand\t"(_ "Automatic pool expansion on LUN growing")" (on, off)" - echo -e "autoreplace\t"(_ "Automatic use of replacement device")" (on, off)" - echo -e "replace\t"(_ "Automatic use of replacement device")" (on, off)" - echo -e "bootfs\t"(_ "Default bootable dataset")" (POOL/DATASET)" - echo -e "cachefile\t"(_ "Pool configuration cache")" (PATH, none, '')" - echo -e "comment\t"(_ "Comment about the pool")" (COMMENT)" - echo -e "dedupditto\t"(_ "Threshold for writing a ditto copy of deduplicated blocks")" (COUNT)" - echo -e "delegation\t"(_ "Allow rights delegation on the pool")" (on, off)" - echo -e "failmode\t"(_ "Behavior in case of catastrophic pool failure")" (wait, continue, panic)" - echo -e "listsnaps\t"(_ "Display snapshots even if 'zfs list' does not use '-t'")" (on, off)" - echo -e "version\t"(_ "On-disk version of pool")" (VERSION)" + echo -e "autoexpand\tAutomatic pool expansion on LUN growing (on, off)" + echo -e "expand\tAutomatic pool expansion on LUN growing (on, off)" + echo -e "autoreplace\tAutomatic use of replacement device (on, off)" + echo -e "replace\tAutomatic use of replacement device (on, off)" + echo -e "bootfs\tDefault bootable dataset (POOL/DATASET)" + echo -e "cachefile\tPool configuration cache (PATH, none, '')" + echo -e "comment\tComment about the pool (COMMENT)" + echo -e "dedupditto\tThreshold for writing a ditto copy of deduplicated blocks (COUNT)" + echo -e "delegation\tAllow rights delegation on the pool (on, off)" + echo -e "failmode\tBehavior in case of catastrophic pool failure (wait, continue, panic)" + echo -e "listsnaps\tDisplay snapshots even if 'zfs list' does not use '-t' (on, off)" + echo -e "version\tOn-disk version of pool (VERSION)" # Feature properties zpool list -o all | string replace -ra ' +' '\n' | string lower | string replace -rf '^feature@(.*)' '$1' end @@ -271,7 +271,7 @@ complete -c zpool -f -n '__fish_zpool_using_command get' -s H -d 'Print output i if contains -- $OS FreeBSD SunOS complete -c zpool -x -n '__fish_zpool_using_command get' -s o -d 'Fields to display' -a '(__fish_append , (__fish_zpool_list_get_fields))' end -complete -c zpool -x -n '__fish_zpool_using_command get' -d 'Properties to get' -a '(__fish_append , (__fish_zpool_list_importtime_properties; __fish_zpool_list_rw_properties; __fish_zpool_list_writeonce_properties; __fish_zpool_list_ro_properties; __fish_zpool_list_device_properties; echo -e "all\t"(_ "All properties")))' +complete -c zpool -x -n '__fish_zpool_using_command get' -d 'Properties to get' -a '(__fish_append , (__fish_zpool_list_importtime_properties; __fish_zpool_list_rw_properties; __fish_zpool_list_writeonce_properties; __fish_zpool_list_ro_properties; __fish_zpool_list_device_properties; echo -e "all\tAll properties"))' complete -c zpool -x -n '__fish_zpool_using_command get' -d 'Pool to get properties of' -a '(__fish_complete_zfs_pools)' # history completions