sync/README.md

51 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2018-07-05 17:15:28 -04:00
# Sync
2018-07-06 23:33:38 -04:00
Syncs austenwares.com offical bash/zsh/tmux/vim/... config files
### Installation
2018-07-06 23:35:28 -04:00
- Using Ansible (more setup, easier syncing)
2018-07-06 23:33:38 -04:00
2018-07-08 14:09:49 -04:00
git clone https://gitea.austenwares.com/stonewareslord/sync
2018-07-06 23:35:28 -04:00
cd sync
2018-07-06 23:33:38 -04:00
virtualenv .env
. .env/bin/activate
pip install -r requirements.txt
./sync.sh TAG[,TAG2...] [ANSIBLE-OPTS]
2018-07-06 23:35:28 -04:00
- Using stow (quicker, easier, less features)
2018-07-06 23:33:38 -04:00
2018-07-08 14:09:49 -04:00
git clone https://gitea.austenwares.com/stonewareslord/sync ~/sync
2018-07-06 23:35:28 -04:00
cd ~/sync
2018-07-06 23:33:38 -04:00
stow skel
2018-07-08 14:09:49 -04:00
# For private
git clone https://gitea.austenwares.com/stonewareslord/private
stow private/skel
2018-07-06 23:33:38 -04:00
2018-07-22 10:14:01 -04:00
- Stow oneliner
2018-07-22 10:24:52 -04:00
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
2018-07-22 10:14:01 -04:00
2018-07-06 23:33:38 -04:00
- Installing vim
vim +'call Initialize()'
2018-07-05 17:15:28 -04:00
### Examples
2018-07-07 00:07:24 -04:00
#### Sync all config and remove existing files
2018-07-05 17:15:28 -04:00
2018-07-07 00:07:24 -04:00
./sync.sh clean --extra-vars 'overwrite_existing=yes'
#### Sync for root
./sync.sh default --become --ask-become-pass
2018-07-05 17:15:28 -04:00
#### 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