From 6475d763d048618ba84c78d708160c06aa663c9b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 20 Jul 2015 12:34:42 +0200 Subject: [PATCH] Remove function and descriptions from rc-service completion The descriptions are "Start: Start the service" "Stop : Stop the service" "Restart: Restart the service" --- share/completions/rc-service.fish | 2 +- share/functions/__fish_complete_service_actions.fish | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 share/functions/__fish_complete_service_actions.fish diff --git a/share/completions/rc-service.fish b/share/completions/rc-service.fish index a88856860..c96eeec91 100644 --- a/share/completions/rc-service.fish +++ b/share/completions/rc-service.fish @@ -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' diff --git a/share/functions/__fish_complete_service_actions.fish b/share/functions/__fish_complete_service_actions.fish deleted file mode 100644 index ab91f7860..000000000 --- a/share/functions/__fish_complete_service_actions.fish +++ /dev/null @@ -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