-
-
Save leibowitz/8d6414570a4c78a92209 to your computer and use it in GitHub Desktop.
Run go or git
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
#!/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