Skip to content

Instantly share code, notes, and snippets.

@pcreux
Created June 15, 2011 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcreux/1027404 to your computer and use it in GitHub Desktop.
Save pcreux/1027404 to your computer and use it in GitHub Desktop.
Zsh autocompletion is easy. That's how we play sounds on a remote computer with autocompletion.
aplay () { ssh applemini "afplay Music/$1" }
alist () { ssh applemini "ls Music" }
compctl -k "(`alist`)" aplay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment