+# -*- mode: sh -*-
# kdo is a shell function for interacting with multiple Kerberos
# credential caches.
#
+# To use kdo, add this snippet to your .bashrc or .bashrc.mine file.
+#
# To run a command with a different set of credentials from your
# default, run
#
knewcache () {
princ="$1"; shift
local oldcache="$(klist | grep 'Kerberos 5 ticket cache' | cut -f 2 -d "'")"
+ # " # <-- emacs thinks there's an unbalanced " on the previous line.
kinit "$@" "$princ" || return 1
cache="$(kfindcache "$princ")"
# On OS X, kinit will switch your default credential cache to