small pixel drawing of a pufferfish dotfiles

bin/tmpgo

1 2 3 4 5 6 7 8 9 10 11 12
#!/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