mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Remove function and descriptions from rc-service completion
The descriptions are "Start: Start the service" "Stop : Stop the service" "Restart: Restart the service"
This commit is contained in:
parent
7add4d5782
commit
6475d763d0
@ -4,7 +4,7 @@ complete -c rc-service -n "test (__fish_number_of_cmd_args_wo_opts) = 1" \
|
||||
|
||||
# The second argument is what action to take with the service
|
||||
complete -c rc-service -n "test (__fish_number_of_cmd_args_wo_opts) -gt 1" \
|
||||
-xa "(__fish_complete_service_actions)"
|
||||
-xa "start stop restart"
|
||||
|
||||
# Complete rc-service the options
|
||||
complete -c rc-service -s e -l exists -d 'Tests if the service exists or not'
|
||||
|
@ -1,7 +0,0 @@
|
||||
function __fish_complete_service_actions -d "Print a list of all basic service \
|
||||
actions"
|
||||
set -l actions start 'Start the service'
|
||||
set -l actions $actions stop 'Stop the service'
|
||||
set -l actions $actions restart 'Restart the service'
|
||||
printf "%s\t%s\n" $actions
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user