44 lines
966 B
Markdown
44 lines
966 B
Markdown
# Sync
|
|
Syncs austenwares.com offical bash/zsh/tmux/vim/... config files
|
|
|
|
### Installation
|
|
- Using Ansible (more setup, easier syncing)
|
|
|
|
git clone https://austenwares.com/gitea/stonewareslord/sync
|
|
cd sync
|
|
virtualenv .env
|
|
. .env/bin/activate
|
|
pip install -r requirements.txt
|
|
./sync.sh TAG[,TAG2...] [ANSIBLE-OPTS]
|
|
|
|
- Using stow (quicker, easier, less features)
|
|
|
|
git clone https://austenwares.com/gitea/stonewareslord/sync ~/sync
|
|
cd ~/sync
|
|
stow skel
|
|
|
|
- Installing vim
|
|
|
|
vim +'call Initialize()'
|
|
|
|
### Examples
|
|
#### Sync all config and remove existing files
|
|
|
|
./sync.sh clean --extra-vars 'overwrite_existing=yes'
|
|
|
|
#### Sync for root
|
|
|
|
./sync.sh default --become --ask-become-pass
|
|
|
|
#### Secure SSH
|
|
|
|
./sync.sh secure --ask-become-pass --tags
|
|
|
|
#### Disable SSH password authentication
|
|
|
|
./sync.sh secure --extra-vars 'disable_passwordauth=true' --ask-become-pass
|
|
|
|
#### Use 1.1.1.1 dns
|
|
|
|
./sync.sh dns --ask-become-pass
|