sync/README.md
2018-07-22 10:24:52 -04:00

51 lines
1.3 KiB
Markdown

# Sync
Syncs austenwares.com offical bash/zsh/tmux/vim/... config files
### Installation
- Using Ansible (more setup, easier syncing)
git clone https://gitea.austenwares.com/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://gitea.austenwares.com/stonewareslord/sync ~/sync
cd ~/sync
stow skel
# For private
git clone https://gitea.austenwares.com/stonewareslord/private
stow private/skel
- Stow oneliner
command -v stow >/dev/null && git clone https://gitea.austenwares.com/stonewareslord/sync ~/sync && cd ~/sync && stow skel && git checkout develop && git clone git@gitea.austenwares.com:stonewareslord/private && stow private/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