Support for machine suffixes.

I put the outer hostname as a suffix on VMs.
This commit is contained in:
2025-03-11 16:21:05 -04:00
parent 035cb25209
commit 2015c6f6c2
2 changed files with 4 additions and 2 deletions

View File

@ -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 User git
Host * Host *
IdentityFile ~/.ssh/id_%L-%h IdentityFile ~/.ssh/id_%L${CSHENV_MACHINE_SUFFIX}-%h
# vim: ft=sshconfig # vim: ft=sshconfig

2
tcshrc
View File

@ -9,6 +9,8 @@ endif
set path=( ${CSHENV_DIR}/bin ${path} ) set path=( ${CSHENV_DIR}/bin ${path} )
setenv CSHENV_MACHINE_SUFFIX
# Figure out what kind of tcsh we are running. # Figure out what kind of tcsh we are running.
if( $?tcsh ) then if( $?tcsh ) then