3 # a wrapper for the secure shell.
4 # we want to fix any terminal titles that the foreign shells give us, and
5 # this script is our chance to do so.
7 #hmmm: not the slightest bit general here.
8 # what about having a main key variable and a sourceforge key variable?
9 # better yet, an array of site patterns and keys for those sites.
11 keyfile="$HOME/.ssh/id_dsa_fred"
13 if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
14 keyfile="$HOME/.ssh/id_dsa_sourceforge"
17 echo hey we be on wik dese parms $* >~/crap.txt
19 \ssh -i "$keyfile" -X $*
22 # we don't want to emit anything extra if this is being driven by git.
23 if [ -z "$(echo $* | grep git)" ]; then
24 # re-run the terminal labeller after coming back from ssh.
25 # we check the exit value because we don't want to update this for a failed connection.
26 bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh