diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-05 19:14:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-03-05 19:14:55 +0100 |
commit | fc15e062f26812e3a9c9c6457c3e459a7ccf847d (patch) | |
tree | af2ad4579a99c056523cc40989a89ddbdc0e49d3 | |
parent | 34c38eb75c20e2759b4d5886da8da0787532222b (diff) |
off completion: Use _places provided by the places package
-rw-r--r-- | etc/completions/_off | 10 |
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 |