From 2015c6f6c2df56a9b534e4278cbfbed976be1ea8 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Tue, 11 Mar 2025 16:21:05 -0400 Subject: [PATCH] Support for machine suffixes. I put the outer hostname as a suffix on VMs. --- ssh/epilogue | 4 ++-- tcshrc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ssh/epilogue b/ssh/epilogue index 8001630..d630445 100644 --- a/ssh/epilogue +++ b/ssh/epilogue @@ -1,8 +1,8 @@ -Host gitea.* github.com gitlab.com *.github.com *.gitlab.com +Host gitea gitea.* github.com gitlab.com *.github.com *.gitlab.com User git Host * - IdentityFile ~/.ssh/id_%L-%h + IdentityFile ~/.ssh/id_%L${CSHENV_MACHINE_SUFFIX}-%h # vim: ft=sshconfig diff --git a/tcshrc b/tcshrc index 9be9074..457b67e 100644 --- a/tcshrc +++ b/tcshrc @@ -9,6 +9,8 @@ endif set path=( ${CSHENV_DIR}/bin ${path} ) +setenv CSHENV_MACHINE_SUFFIX + # Figure out what kind of tcsh we are running. if( $?tcsh ) then