Skip to content

Instantly share code, notes, and snippets.

@leibowitz
Created November 3, 2014 14:53
Show Gist options
  • Save leibowitz/8d6414570a4c78a92209 to your computer and use it in GitHub Desktop.
Save leibowitz/8d6414570a4c78a92209 to your computer and use it in GitHub Desktop.
Run go or git
#!/bin/bash
declare -a arr=("build" "clean" "env" "fix" "fmt" "get" "install" "list" "run" "test" "tool" "version" "vet")
[ ${arr[$1]+abc} ] && go $@ || git $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment