summaryrefslogtreecommitdiff
path: root/etc/completions/_off
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-05 19:14:55 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-05 19:14:55 +0100
commitfc15e062f26812e3a9c9c6457c3e459a7ccf847d (patch)
treeaf2ad4579a99c056523cc40989a89ddbdc0e49d3 /etc/completions/_off
parent34c38eb75c20e2759b4d5886da8da0787532222b (diff)
off completion: Use _places provided by the places package
Diffstat (limited to 'etc/completions/_off')
-rw-r--r--etc/completions/_off10
1 files changed, 1 insertions, 9 deletions
diff --git a/etc/completions/_off b/etc/completions/_off
index afe95fc..1d61f8f 100644
--- a/etc/completions/_off
+++ b/etc/completions/_off
@@ -7,15 +7,7 @@ arguments=(
'--force[shutdown a server]'
'-n[simulate]'
'-r[reboot]'
- ':place:_off_places'
+ ':place:_derf_place'
)
-function _off_places {
- if [[ ! -d ~/packages/places ]] {
- return 1
- }
- _wanted place expl place \
- compadd $(ls -1 ~/packages/places/etc)
-}
-
_arguments -s $arguments