aboutsummaryrefslogtreecommitdiffhomepage
path: root/share
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-07-20 12:34:42 +0200
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-07-20 15:19:03 -0700
commit6475d763d048618ba84c78d708160c06aa663c9b (patch)
tree8390474f6bf84f20d78a347f50f76f4f3402d368 /share
parent7add4d57823b98ede9aff7ea512f1d119735c0e4 (diff)
Remove function and descriptions from rc-service completion
The descriptions are "Start: Start the service" "Stop : Stop the service" "Restart: Restart the service"
Diffstat (limited to 'share')
-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