1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

Splitting wakeonlan plugin completion into separate file

This commit is contained in:
Paul Gideon Dann 2011-09-19 15:42:58 +01:00
parent aa7ddd51cc
commit e94039d62b
2 changed files with 4 additions and 4 deletions

4
plugins/wakeonlan/_wake Normal file
View file

@ -0,0 +1,4 @@
#compdef wake
#autoload
_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0

View file

@ -12,7 +12,3 @@ function wake() {
wakeonlan -f "$config_file" wakeonlan -f "$config_file"
} }
if (( $+functions[compdef] )); then
compdef "_arguments '1:device to wake:_files -W '\''$HOME/.wakeonlan'\'''" wake
fi