You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
398 B

function __post_review_opts(){
post-review --help | grep -E "^ *-" | \
awk '/^ *--/ { gsub(/=.*/, "") ; print $1 }
/^ *-[^-]/ {
gsub(/=.*/, "") ;
gsub(/,/, "") ;
print $1 "\n" $2
}' | grep -v ID
}
which post-review >/dev/null 2>&1 && complete -W "$(__post_review_opts)" -o default post-review
# vim:filetype=sh