+keyfile="$HOME/.ssh/id_dsa_fred"
+
+if [ ! -z "$(echo $* | grep -i sourceforge)" ]; then
+ keyfile="$HOME/.ssh/id_dsa_sourceforge"
+fi
+
+\ssh -i "$keyfile" -X $*
+
+if [ $? -eq 0 ]; then
+ # re-run the terminal labeller after coming back from ssh.
+ # we check the exit value because we don't want to update this for a failed connection.
+ bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh
+fi