bin/tmpgo
#!/bin/sh # # make a tempdir & cd to it set -e d="$(pwgen 10)" mkdir "/tmp/$d" printf '%s\n' "/tmp/$d" cd "/tmp/$d" printf "package main\n\nfunc main() {\n\t\n}\n" >main.go vi "+normal Gk" +startinsert! main.go && go run main.go