Clean up a lot how the ssh search is generated and maintained.

This commit is contained in:
2025-03-10 15:23:10 -04:00
parent 2e677b6325
commit a1dd3bd43c
3 changed files with 21 additions and 4 deletions

View File

@ -3,10 +3,7 @@
#
# That config uses Canonicalization to emulate what your local resolver
# does in these circumstances.
Match exec 'rm -f ~/ssh/search | false'
Match exec 'grep "^search" /etc/resolv.conf ' exec 'grep search /etc/resolv.conf | awk \'{print "Host *\n\tCanonicalDomains "$2"\n\tCanonicalizeHostname yes\n# v""im:ft=sshconfig"}\' > ~/.ssh/search'
Match exec "~/cshenv/ssh/gen-search.sh"
Include ~/.ssh/search
# vim: ft=sshconfig