mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
Run fish_indent on share/**.fish
This is mostly to show that some of my following indent changes don't break current behavior.
This commit is contained in:
parent
e40850ab89
commit
330883b6fd
|
@ -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 session_users "(dm-tool list-seats | string replace -rf '.*UserName=' '' | string trim -c '\'')"
|
||||||
set -l has_user "__fish_seen_subcommand_from $session_users"
|
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"
|
complete -c dm-tool -n "__fish_seen_subcommand_from switch-to-user; and not $has_user" -xa "$session_users"
|
||||||
|
|
||||||
|
|
|
@ -9,23 +9,23 @@ complete -c gem -n __fish_use_subcommand -s v -l version -d "Print the version a
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# Subcommands
|
# 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 update -d "Update the named gem or all installed gems in the local repository"
|
||||||
|
|
||||||
#####
|
#####
|
||||||
# Subcommand switches
|
# Subcommand switches
|
||||||
|
|
|
@ -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 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 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 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 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 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 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 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 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 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 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 -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-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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 help -d "Prints the usage for a given subcommand"
|
||||||
|
|
|
@ -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 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 -s Z -d 'Issue StartTLS extended operation'
|
||||||
complete -c ldapsearch -o ZZ -d 'Issue StartTLS ectended operation only if succesful'
|
complete -c ldapsearch -o ZZ -d 'Issue StartTLS ectended operation only if succesful'
|
||||||
|
|
||||||
|
|
|
@ -43,12 +43,12 @@ function __fish_pa_complete_unloaded_modules
|
||||||
if command -sq pulseaudio
|
if command -sq pulseaudio
|
||||||
# We need to get just the module names
|
# We need to get just the module names
|
||||||
set -l loaded (__fish_pa_print_type modules | string replace -r '^\w*\t([-\w]+).*' '$1')
|
set -l loaded (__fish_pa_print_type modules | string replace -r '^\w*\t([-\w]+).*' '$1')
|
||||||
pulseaudio --dump-modules | while read -l name description
|
pulseaudio --dump-modules | while read -l name description
|
||||||
# This is a potential source of slowness, but on my system it's instantaneous
|
# This is a potential source of slowness, but on my system it's instantaneous
|
||||||
# with 73 modules
|
# with 73 modules
|
||||||
if not contains -- $name $loaded
|
if not contains -- $name $loaded
|
||||||
printf "%s\t%s\n" $name $description
|
printf "%s\t%s\n" $name $description
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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 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 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)"
|
complete -c ps -s p -lpid$bsd_null -d "Select by PID" -x -a "(__fish_complete_list , __fish_complete_pids)"
|
||||||
|
|
||||||
|
|
|
@ -6,4 +6,3 @@ function __fish_make_cache_dir --description "Create and return XDG_CACHE_HOME"
|
||||||
mkdir -m 700 -p $xdg_cache_home
|
mkdir -m 700 -p $xdg_cache_home
|
||||||
and echo $xdg_cache_home
|
and echo $xdg_cache_home
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -7,4 +7,3 @@ function __fish_print_pkg_packages
|
||||||
end
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ function fish_prompt
|
||||||
|
|
||||||
# Get the commit difference counts between local and remote.
|
# Get the commit difference counts between local and remote.
|
||||||
command git rev-list --count --left-right 'HEAD...@{upstream}' 2>/dev/null \
|
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
|
if test $status -ne 0
|
||||||
set status_ahead 0
|
set status_ahead 0
|
||||||
set status_behind 0
|
set status_behind 0
|
||||||
|
@ -182,4 +182,3 @@ function fish_prompt
|
||||||
set_color normal
|
set_color normal
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user