Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created April 12, 2016 19:05
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 jedahan/5ca366e4db1e2541ff4d7299c8dce8e9 to your computer and use it in GitHub Desktop.
Save jedahan/5ca366e4db1e2541ff4d7299c8dce8e9 to your computer and use it in GitHub Desktop.
function r() {
$[RANDOM % 2] && {
(( ! $# )) && echo "$0 reviewer [cc [cc...]]" || \
echo EDITOR=true review -g -r $1 ${2+-c "${(j.,.)@[2,-1]}"}
} || {
local EDITOR=true
case $# in
0) echo "$0 reviewer [cc [cc...]]";;
1) review -g -r $1;;
*) review -g -r $1 -c ${(j:,:)@[2,-1]};;
esac
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment