I want to create an alias for pagsh
that will immediately get me the admin kerberos ticket.
The problem is that I can't figure out how to specify a command for the bash
to run, but still continue with the interactive session after the command is done.
My current shot is:
alias admin=pagsh -c "bash -c \"kinit xtoth1@ADMIN.META\""
but bash
logically ends right after kinit
is done. How can I push a custom command into a begging of an interactive session of bash? I still need to run .bashrc normally, therefore I can't use --rcfile