From b2bfb97c752fe6d0ba89d65c74b57b4b3a963f6a Mon Sep 17 00:00:00 2001 From: Trevor Merritt Date: Mon, 15 Nov 2021 09:08:09 -0500 Subject: [PATCH] Adds 'dot files follow me' config. --- ssh/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ssh/config b/ssh/config index c6b84fa..44fb598 100644 --- a/ssh/config +++ b/ssh/config @@ -11,3 +11,7 @@ Host 172.24.4.115 Host 10.1.24.115 HostName 10.1.24.115 User tmerritt +Host 10.1.*.* + PermitLocalCommand yes + # Unfortunately ssh does not support line breaks in config files + LocalCommand ssh -o PermitLocalCommand=no %n "which git >/dev/null && ([[ -d ~/.dotfiles ]] && (echo "Updating dotfiles on %h ..." && cd ~/.dotfiles && git pull -q && ./install >/dev/null) || (echo "Installing dotfiles on %h ..." && git clone -q http://gitea.pyrocode.xyz/tmerritt/dotfiles.git ~/.dotfiles && ./.dotfiles/install >/dev/null))"