]> gitweb.pimeys.fr Git - scripts-20-100.git/blob - deploy_config.sh
typo
[scripts-20-100.git] / deploy_config.sh
1 #!/bin/bash
2
3 # Pour créer la config sur une nouvelle machine
4
5 cd ~
6 test -d .myconfig && echo ".myconfig existe" && exit 1
7 git clone ssh://cerebro.crans.org/git/fichiers_configuration_branchperso.git .myconfig
8
9 cd .myconfig
10 git checkout perso
11 cd ..
12
13 for fichier in .bashrc .bash_aliases .gitconfig .nanorc .screenrc .vimrc .umaskrc .ssh/config;
14 do
15 rm -i ~/${fichier}
16 ln -s ~/.myconfig/${fichier} ~/${fichier}
17 done