aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--share/completions/rc-service.fish2
-rw-r--r--share/functions/__fish_complete_service_actions.fish7
2 files changed, 1 insertions, 8 deletions
diff --git a/share/completions/rc-service.fish b/share/completions/rc-service.fish
index a8885686..c96eeec9 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 ab91f786..00000000
--- 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