MàJ README
This commit is contained in:
parent
78d5e152ef
commit
280587040b
24
README.md
24
README.md
@ -31,6 +31,30 @@ source ~/.zshrc
|
||||
|
||||
Ce qui relance zsh pour rendre la commande `dotfiles` active !
|
||||
|
||||
## Après un script Ansible
|
||||
|
||||
Cf. https://www.atlassian.com/git/tutorials/dotfiles
|
||||
|
||||
Puis ssh@maMachine et :
|
||||
|
||||
```
|
||||
function config {
|
||||
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
|
||||
}
|
||||
mkdir -p .config-backup
|
||||
config checkout
|
||||
if [ $? = 0 ]; then
|
||||
echo "Checked out config.";
|
||||
else
|
||||
echo "Backing up pre-existing dot files.";
|
||||
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
|
||||
fi;
|
||||
config checkout
|
||||
config config status.showUntrackedFiles no
|
||||
```
|
||||
|
||||
Ensuite on supprime les fichiers/dossiers listés puis on fait : `config checkout`.
|
||||
|
||||
## Description
|
||||
|
||||
Quelques fichiers de configuration possibles pour des outils quotidiens tels que :
|
||||
|
Loading…
Reference in New Issue
Block a user