Adds 'dot files follow me' config.

This commit is contained in:
tmerritt committed 2021-11-15 09:08:09 -05:00
1 parent 922a71cc82
commit b2bfb97c75
1 file changed
+4
+4
View File
@@ -11,3 +11,7 @@ Host 172.24.4.115
Host 10.1.24.115 Host 10.1.24.115
HostName 10.1.24.115 HostName 10.1.24.115
User tmerritt 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))"