Browse code

Splitting wakeonlan plugin completion into separate file

Paul Gideon Dann authored on 19/09/2011 at 14:42:58
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,4 @@
0
+#compdef wake
1
+#autoload
2
+
3
+_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0
... ...
@@ -12,7 +12,3 @@ function wake() {
12 12
 
13 13
   wakeonlan -f "$config_file"
14 14
 }
15
-
16
-if (( $+functions[compdef] )); then
17
-  compdef "_arguments '1:device to wake:_files -W '\''$HOME/.wakeonlan'\'''" wake
18
-fi