Splitting wakeonlan plugin completion into separate file

This commit is contained in:
Paul Gideon Dann committed 2011-09-19 18:36:41 +01:00
1 parent aa7ddd51cc
commit e94039d62b
2 files changed
+4 -4

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
#compdef wake
#autoload
_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0
-4
View File
@@ -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