From: Vincent Le Gallic Date: Sun, 29 Sep 2013 17:00:33 +0000 (+0200) Subject: Pour déployer sa config à la vitesse d'un ninja. X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=bfd2a3376b8a7a8f54603028b9d0384f9a2e8fa4;hp=aaa3d7aa867e3e6ec64f6ab6fa4b36c0a970cd98;p=scripts-20-100.git Pour déployer sa config à la vitesse d'un ninja. --- diff --git a/deploy_config.sh b/deploy_config.sh new file mode 100755 index 0000000..da01ff4 --- /dev/null +++ b/deploy_config.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Pour créer la config sur une nouvelle machine + +cd ~ +test -d .myconfig && echo ".myconfig existe" && exit 1 +git clone ssh://cerebro.crans.org/git/fichiers_configuration_branchperso.git .myconfig + +cd .myconfig +git checkout perso +cd .. + +for fichier in .bashrc .bash_aliases .gitconfig .nanorc .screenrc .vimrc .umaskrc .ssh/config; +do + rm -i ~/${fichier} + ln -s ~/.myconfig/${fichier} ~/${fichier} +done