It'd be nice if the shell command could detect a non-standard shell and set everything up appropriately.

Setting the environment variable would look like this here:
$env.KUBECONFIG = "/tmp/replicated-kubeconfig1399457438"
I do understand that this is a low priority request.