Last active
December 25, 2015 02:39
-
-
Save maxme/6904241 to your computer and use it in GitHub Desktop.
Quick and dirty up completion for zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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