\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
+ # we don't want to emit anything extra if this is being driven by git.
+ if [ -z "$(echo $* | grep git)" ]; 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
fi