From bfd2a3376b8a7a8f54603028b9d0384f9a2e8fa4 Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Sun, 29 Sep 2013 19:00:33 +0200 Subject: [PATCH] =?utf8?q?Pour=20d=C3=A9ployer=20sa=20config=20=C3=A0=20la?= =?utf8?q?=20vitesse=20d'un=20ninja.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- deploy_config.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 deploy_config.sh 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 -- 2.39.2