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:
Fabian Homborg 2015-07-20 12:34:42 +02:00 committed by ridiculousfish
parent 7add4d5782
commit 6475d763d0
2 changed files with 1 additions and 8 deletions

View File

@ -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'

View File

@ -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