new file mode 100644
@@ -0,0 +1,4 @@
+#compdef wake
+#autoload
+
+_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0
@@ -12,7 +12,3 @@ function wake() {
wakeonlan -f "$config_file"
}
-
-if (( $+functions[compdef] )); then
- compdef "_arguments '1:device to wake:_files -W '\''$HOME/.wakeonlan'\'''" wake
-fi