Skip to content

Commit

Permalink
Splitting wakeonlan plugin completion into separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
giddie committed Sep 19, 2011
1 parent aa7ddd5 commit e94039d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions plugins/wakeonlan/_wake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#compdef wake
#autoload

_arguments "1:device to wake:_files -W '$HOME/.wakeonlan'" && return 0
4 changes: 0 additions & 4 deletions plugins/wakeonlan/wakeonlan.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e94039d

Please sign in to comment.