diff --git a/share/completions/dm-tool.fish b/share/completions/dm-tool.fish index ef72fe5e4..1a749d31c 100644 --- a/share/completions/dm-tool.fish +++ b/share/completions/dm-tool.fish @@ -13,4 +13,3 @@ complete -c dm-tool -n "not __fish_seen_subcommand_from $cmds" -xa "$cmds" set -l session_users "(dm-tool list-seats | string replace -rf '.*UserName=' '' | string trim -c '\'')" set -l has_user "__fish_seen_subcommand_from $session_users" complete -c dm-tool -n "__fish_seen_subcommand_from switch-to-user; and not $has_user" -xa "$session_users" - diff --git a/share/completions/gem.fish b/share/completions/gem.fish index 66201336c..119e4f13a 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 a ##### # Subcommands -complete -c gem -n __fish_use_subcommand -xa "build" -d "Build a gem from a gemspec" -complete -c gem -n __fish_use_subcommand -xa "cert" -d "Adjust RubyGems certificate settings" -complete -c gem -n __fish_use_subcommand -xa "check" -d "Check installed gems" -complete -c gem -n __fish_use_subcommand -xa "cleanup" -d "Cleanup old versions of installed gems in the local repository" -complete -c gem -n __fish_use_subcommand -xa "contents" -d "Display the contents of the installed gems" -complete -c gem -n __fish_use_subcommand -xa "dependency" -d "Show the dependencies of an installed gem" -complete -c gem -n __fish_use_subcommand -xa "environment" -d "Display RubyGems environmental information" -complete -c gem -n __fish_use_subcommand -xa "help" -d "Provide help on the 'gem' command" -complete -c gem -n __fish_use_subcommand -xa "install" -d "Install a gem into the local repository" -complete -c gem -n __fish_use_subcommand -xa "list" -d "Display all gems whose name starts with STRING" -complete -c gem -n __fish_use_subcommand -xa "query" -d "Query gem information in local or remote repositories" -complete -c gem -n __fish_use_subcommand -xa "rdoc" -d "Generates RDoc for pre-installed gems" -complete -c gem -n __fish_use_subcommand -xa "search" -d "Display all gems whose name contains STRING" -complete -c gem -n __fish_use_subcommand -xa "specification" -d "Display gem specification (in YAML)" -complete -c gem -n __fish_use_subcommand -xa "uninstall" -d "Uninstall a gem from the local repository" -complete -c gem -n __fish_use_subcommand -xa "unpack" -d "Unpack an installed gem to the current directory" -complete -c gem -n __fish_use_subcommand -xa "update" -d "Update the named gem or all installed gems in the local repository" +complete -c gem -n __fish_use_subcommand -xa build -d "Build a gem from a gemspec" +complete -c gem -n __fish_use_subcommand -xa cert -d "Adjust RubyGems certificate settings" +complete -c gem -n __fish_use_subcommand -xa check -d "Check installed gems" +complete -c gem -n __fish_use_subcommand -xa cleanup -d "Cleanup old versions of installed gems in the local repository" +complete -c gem -n __fish_use_subcommand -xa contents -d "Display the contents of the installed gems" +complete -c gem -n __fish_use_subcommand -xa dependency -d "Show the dependencies of an installed gem" +complete -c gem -n __fish_use_subcommand -xa environment -d "Display RubyGems environmental information" +complete -c gem -n __fish_use_subcommand -xa help -d "Provide help on the 'gem' command" +complete -c gem -n __fish_use_subcommand -xa install -d "Install a gem into the local repository" +complete -c gem -n __fish_use_subcommand -xa list -d "Display all gems whose name starts with STRING" +complete -c gem -n __fish_use_subcommand -xa query -d "Query gem information in local or remote repositories" +complete -c gem -n __fish_use_subcommand -xa rdoc -d "Generates RDoc for pre-installed gems" +complete -c gem -n __fish_use_subcommand -xa search -d "Display all gems whose name contains STRING" +complete -c gem -n __fish_use_subcommand -xa specification -d "Display gem specification (in YAML)" +complete -c gem -n __fish_use_subcommand -xa uninstall -d "Uninstall a gem from the local repository" +complete -c gem -n __fish_use_subcommand -xa unpack -d "Unpack an installed gem to the current directory" +complete -c gem -n __fish_use_subcommand -xa update -d "Update the named gem or all installed gems in the local repository" ##### # Subcommand switches diff --git a/share/completions/launchctl.fish b/share/completions/launchctl.fish index 8fe100347..c542fa569 100644 --- a/share/completions/launchctl.fish +++ b/share/completions/launchctl.fish @@ -1,44 +1,44 @@ -complete --command launchctl -n __fish_use_subcommand -xa "bootstrap" -d "Bootstraps a domain or a service into a domain" -complete --command launchctl -n __fish_use_subcommand -xa "bootout" -d "Tears down a domain or removes a service from a domain" -complete --command launchctl -n __fish_use_subcommand -xa "enable" -d "Enables an existing service" -complete --command launchctl -n __fish_use_subcommand -xa "disable" -d "Disables an existing service" -complete --command launchctl -n __fish_use_subcommand -xa "uncache" -d "Removes the specified service name from the service cache" -complete --command launchctl -n __fish_use_subcommand -xa "kickstart" -d "Forces an existing service to start" -complete --command launchctl -n __fish_use_subcommand -xa "attach" -d "Attach the system's debugger to a service" -complete --command launchctl -n __fish_use_subcommand -xa "debug" -d "Configures the next invocation of a service for debugging" -complete --command launchctl -n __fish_use_subcommand -xa "kill" -d "Sends a signal to the service instance" -complete --command launchctl -n __fish_use_subcommand -xa "blame" -d "Prints the reason a service is running" -complete --command launchctl -n __fish_use_subcommand -xa "print" -d "Prints a description of a domain or service" -complete --command launchctl -n __fish_use_subcommand -xa "print-cache" -d "Prints information about the service cache" -complete --command launchctl -n __fish_use_subcommand -xa "print-disabled" -d "Prints which services are disabled" -complete --command launchctl -n __fish_use_subcommand -xa "plist" -d "Prints a property list embedded in a binary (targets the Info.plist by default)" -complete --command launchctl -n __fish_use_subcommand -xa "procinfo" -d "Prints port information about a process" -complete --command launchctl -n __fish_use_subcommand -xa "hostinfo" -d "Prints port information about the host" -complete --command launchctl -n __fish_use_subcommand -xa "resolveport" -d "Resolves a port name from a process to an endpoint in launchd" -complete --command launchctl -n __fish_use_subcommand -xa "limit" -d "Reads or modifies launchd's resource limits" -complete --command launchctl -n __fish_use_subcommand -xa "runstats" -d "Prints performance statistics for a service" -complete --command launchctl -n __fish_use_subcommand -xa "examine" -d "Runs the specified analysis tool against launchd in a non-reentrant manner" -complete --command launchctl -n __fish_use_subcommand -xa "config" -d "Modifies persistent configuration parameters for launchd domains" -complete --command launchctl -n __fish_use_subcommand -xa "dumpstate" -d "Dumps launchd state to stdout" -complete --command launchctl -n __fish_use_subcommand -xa "dumpjpcategory" -d "Dumps the jetsam properties category for all services" -complete --command launchctl -n __fish_use_subcommand -xa "reboot" -d "Initiates a system reboot of the specified type" -complete --command launchctl -n __fish_use_subcommand -xa "bootshell" -d "Brings the system up from single-user mode with a console shell" -complete --command launchctl -n __fish_use_subcommand -xa "load" -d "Bootstraps a service or directory of services" -complete --command launchctl -n __fish_use_subcommand -xa "unload" -d "Unloads a service or directory of services" -complete --command launchctl -n __fish_use_subcommand -xa "remove" -d "Unloads the specified service name" -complete --command launchctl -n __fish_use_subcommand -xa "list" -d "Lists information about services" -complete --command launchctl -n __fish_use_subcommand -xa "start" -d "Starts the specified service" -complete --command launchctl -n __fish_use_subcommand -xa "stop" -d "Stops the specified service if it is running" -complete --command launchctl -n __fish_use_subcommand -xa "setenv" -d "Sets the specified environment variables for all services within the domain" -complete --command launchctl -n __fish_use_subcommand -xa "unsetenv" -d "Unsets the specified environment variables for all services within the domain" -complete --command launchctl -n __fish_use_subcommand -xa "getenv" -d "Gets the value of an environment variable from within launchd" -complete --command launchctl -n __fish_use_subcommand -xa "bsexec" -d "Execute a program in another process' bootstrap context" -complete --command launchctl -n __fish_use_subcommand -xa "asuser" -d "Execute a program in the bootstrap context of a given user" -complete --command launchctl -n __fish_use_subcommand -xa "submit" -d "Submit a basic job from the command line" -complete --command launchctl -n __fish_use_subcommand -xa "managerpid" -d "Prints the PID of the launchd controlling the session" -complete --command launchctl -n __fish_use_subcommand -xa "manageruid" -d "Prints the UID of the current launchd session" -complete --command launchctl -n __fish_use_subcommand -xa "managername" -d "Prints the name of the current launchd session" -complete --command launchctl -n __fish_use_subcommand -xa "error" -d "Prints a description of an error" -complete --command launchctl -n __fish_use_subcommand -xa "variant" -d "Prints the launchd variant" -complete --command launchctl -n __fish_use_subcommand -xa "version" -d "Prints the launchd version" -complete --command launchctl -n __fish_use_subcommand -xa "help" -d "Prints the usage for a given subcommand" +complete --command launchctl -n __fish_use_subcommand -xa bootstrap -d "Bootstraps a domain or a service into a domain" +complete --command launchctl -n __fish_use_subcommand -xa bootout -d "Tears down a domain or removes a service from a domain" +complete --command launchctl -n __fish_use_subcommand -xa enable -d "Enables an existing service" +complete --command launchctl -n __fish_use_subcommand -xa disable -d "Disables an existing service" +complete --command launchctl -n __fish_use_subcommand -xa uncache -d "Removes the specified service name from the service cache" +complete --command launchctl -n __fish_use_subcommand -xa kickstart -d "Forces an existing service to start" +complete --command launchctl -n __fish_use_subcommand -xa attach -d "Attach the system's debugger to a service" +complete --command launchctl -n __fish_use_subcommand -xa debug -d "Configures the next invocation of a service for debugging" +complete --command launchctl -n __fish_use_subcommand -xa kill -d "Sends a signal to the service instance" +complete --command launchctl -n __fish_use_subcommand -xa blame -d "Prints the reason a service is running" +complete --command launchctl -n __fish_use_subcommand -xa print -d "Prints a description of a domain or service" +complete --command launchctl -n __fish_use_subcommand -xa print-cache -d "Prints information about the service cache" +complete --command launchctl -n __fish_use_subcommand -xa print-disabled -d "Prints which services are disabled" +complete --command launchctl -n __fish_use_subcommand -xa plist -d "Prints a property list embedded in a binary (targets the Info.plist by default)" +complete --command launchctl -n __fish_use_subcommand -xa procinfo -d "Prints port information about a process" +complete --command launchctl -n __fish_use_subcommand -xa hostinfo -d "Prints port information about the host" +complete --command launchctl -n __fish_use_subcommand -xa resolveport -d "Resolves a port name from a process to an endpoint in launchd" +complete --command launchctl -n __fish_use_subcommand -xa limit -d "Reads or modifies launchd's resource limits" +complete --command launchctl -n __fish_use_subcommand -xa runstats -d "Prints performance statistics for a service" +complete --command launchctl -n __fish_use_subcommand -xa examine -d "Runs the specified analysis tool against launchd in a non-reentrant manner" +complete --command launchctl -n __fish_use_subcommand -xa config -d "Modifies persistent configuration parameters for launchd domains" +complete --command launchctl -n __fish_use_subcommand -xa dumpstate -d "Dumps launchd state to stdout" +complete --command launchctl -n __fish_use_subcommand -xa dumpjpcategory -d "Dumps the jetsam properties category for all services" +complete --command launchctl -n __fish_use_subcommand -xa reboot -d "Initiates a system reboot of the specified type" +complete --command launchctl -n __fish_use_subcommand -xa bootshell -d "Brings the system up from single-user mode with a console shell" +complete --command launchctl -n __fish_use_subcommand -xa load -d "Bootstraps a service or directory of services" +complete --command launchctl -n __fish_use_subcommand -xa unload -d "Unloads a service or directory of services" +complete --command launchctl -n __fish_use_subcommand -xa remove -d "Unloads the specified service name" +complete --command launchctl -n __fish_use_subcommand -xa list -d "Lists information about services" +complete --command launchctl -n __fish_use_subcommand -xa start -d "Starts the specified service" +complete --command launchctl -n __fish_use_subcommand -xa stop -d "Stops the specified service if it is running" +complete --command launchctl -n __fish_use_subcommand -xa setenv -d "Sets the specified environment variables for all services within the domain" +complete --command launchctl -n __fish_use_subcommand -xa unsetenv -d "Unsets the specified environment variables for all services within the domain" +complete --command launchctl -n __fish_use_subcommand -xa getenv -d "Gets the value of an environment variable from within launchd" +complete --command launchctl -n __fish_use_subcommand -xa bsexec -d "Execute a program in another process' bootstrap context" +complete --command launchctl -n __fish_use_subcommand -xa asuser -d "Execute a program in the bootstrap context of a given user" +complete --command launchctl -n __fish_use_subcommand -xa submit -d "Submit a basic job from the command line" +complete --command launchctl -n __fish_use_subcommand -xa managerpid -d "Prints the PID of the launchd controlling the session" +complete --command launchctl -n __fish_use_subcommand -xa manageruid -d "Prints the UID of the current launchd session" +complete --command launchctl -n __fish_use_subcommand -xa managername -d "Prints the name of the current launchd session" +complete --command launchctl -n __fish_use_subcommand -xa error -d "Prints a description of an error" +complete --command launchctl -n __fish_use_subcommand -xa variant -d "Prints the launchd variant" +complete --command launchctl -n __fish_use_subcommand -xa version -d "Prints the launchd version" +complete --command launchctl -n __fish_use_subcommand -xa help -d "Prints the usage for a given subcommand" diff --git a/share/completions/ldapsearch.fish b/share/completions/ldapsearch.fish index 75e5fc552..1391eb3a3 100644 --- a/share/completions/ldapsearch.fish +++ b/share/completions/ldapsearch.fish @@ -42,4 +42,3 @@ complete -c ldapsearch -s X -x -d 'Specify the requested authorization ID for SA complete -c ldapsearch -s Y -x -d 'Specify the SASL mechanism to be used for authentication' complete -c ldapsearch -s Z -d 'Issue StartTLS extended operation' complete -c ldapsearch -o ZZ -d 'Issue StartTLS ectended operation only if succesful' - diff --git a/share/completions/pactl.fish b/share/completions/pactl.fish index 4efc895b0..b82904164 100644 --- a/share/completions/pactl.fish +++ b/share/completions/pactl.fish @@ -43,12 +43,12 @@ function __fish_pa_complete_unloaded_modules if command -sq pulseaudio # We need to get just the module names set -l loaded (__fish_pa_print_type modules | string replace -r '^\w*\t([-\w]+).*' '$1') - pulseaudio --dump-modules | while read -l name description - # This is a potential source of slowness, but on my system it's instantaneous - # with 73 modules - if not contains -- $name $loaded - printf "%s\t%s\n" $name $description - end + pulseaudio --dump-modules | while read -l name description + # This is a potential source of slowness, but on my system it's instantaneous + # with 73 modules + if not contains -- $name $loaded + printf "%s\t%s\n" $name $description + end end end end diff --git a/share/completions/ps.fish b/share/completions/ps.fish index 30054b8de..37ee5637d 100644 --- a/share/completions/ps.fish +++ b/share/completions/ps.fish @@ -84,4 +84,3 @@ complete -c ps -s t -ltty$bsd_null -d "Select by tty" -r complete -c ps -s G -lgroup$bsd_null -d "Select by group" -x -a "(__fish_complete_list , __fish_complete_groups)" complete -c ps -s U -luser$bsd_null -d "Select by user" -x -a "(__fish_complete_list , __fish_complete_users)" complete -c ps -s p -lpid$bsd_null -d "Select by PID" -x -a "(__fish_complete_list , __fish_complete_pids)" - diff --git a/share/functions/__fish_make_cache_dir.fish b/share/functions/__fish_make_cache_dir.fish index 24c774491..0efd1e7d9 100644 --- a/share/functions/__fish_make_cache_dir.fish +++ b/share/functions/__fish_make_cache_dir.fish @@ -6,4 +6,3 @@ function __fish_make_cache_dir --description "Create and return XDG_CACHE_HOME" mkdir -m 700 -p $xdg_cache_home and echo $xdg_cache_home end - diff --git a/share/functions/__fish_print_pkg_packages.fish b/share/functions/__fish_print_pkg_packages.fish index 8f7b6f898..ea0476235 100644 --- a/share/functions/__fish_print_pkg_packages.fish +++ b/share/functions/__fish_print_pkg_packages.fish @@ -7,4 +7,3 @@ function __fish_print_pkg_packages end return 1 end - diff --git a/share/tools/web_config/sample_prompts/sorin.fish b/share/tools/web_config/sample_prompts/sorin.fish index b34ea6ade..e55b69e0f 100644 --- a/share/tools/web_config/sample_prompts/sorin.fish +++ b/share/tools/web_config/sample_prompts/sorin.fish @@ -54,7 +54,7 @@ function fish_prompt # Get the commit difference counts between local and remote. command git rev-list --count --left-right 'HEAD...@{upstream}' 2>/dev/null \ - | read -d \t -l status_ahead status_behind + | read -d \t -l status_ahead status_behind if test $status -ne 0 set status_ahead 0 set status_behind 0 @@ -182,4 +182,3 @@ function fish_prompt set_color normal end end -