SSH quality of life improvements.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
Host gitea gitea.* github.com gitlab.com *.github.com *.gitlab.com
|
||||
Match canonical Host gitea,gitea.*,github.com,gitlab.com,*.github.com,*.gitlab.com
|
||||
User git
|
||||
|
||||
|
||||
|
@ -3,9 +3,9 @@ rm -f ~/.ssh/search
|
||||
|
||||
if [ -e ${CSHENV_DIR}/ssh/ssh-search-domains ]
|
||||
then
|
||||
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | cat - ${CSHENV_DIR}/ssh/ssh-search-domains | xargs`
|
||||
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | cat - ${CSHENV_DIR}/ssh/ssh-search-domains | sort -u | xargs`
|
||||
else
|
||||
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | xargs`
|
||||
domains=`grep "^search" /etc/resolv.conf | cut -c 8- - | sort -u | xargs`
|
||||
fi
|
||||
|
||||
if [ -z "${domains}" ] ; then exit 1; fi
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
# That config uses Canonicalization to emulate what your local resolver
|
||||
# does in these circumstances.
|
||||
Match exec "~/cshenv/ssh/gen-search.sh"
|
||||
Match !canonical !final exec "~/cshenv/ssh/gen-search.sh"
|
||||
Include ~/.ssh/search
|
||||
|
||||
# vim: ft=sshconfig
|
||||
|
Reference in New Issue
Block a user