Skip to content

Instantly share code, notes, and snippets.

@maxme
Last active December 25, 2015 02:39
Show Gist options
  • Save maxme/6904241 to your computer and use it in GitHub Desktop.
Save maxme/6904241 to your computer and use it in GitHub Desktop.
Quick and dirty up completion for zsh
_up () {
compadd $(up -h|grep " "|tr -s " "|tr "," "\n"|sed -E "s/ ([a-zA-Z-]+)[ ,].*/\1/")
_arguments -s "*:files:_files"
}
compdef _up up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment