Go to file
2018-07-06 13:41:44 -04:00
applications A lot of changes 2017-11-19 23:14:12 -05:00
roles Make cleaning directory work properly 2018-07-05 17:15:28 -04:00
scripts Remove update.sh 2018-07-02 22:29:20 -04:00
skel Update gitconfig 2018-07-04 13:49:36 -04:00
skel.old Move files to skel 2018-03-15 10:50:49 -04:00
skel.vim Add working vim sync 2018-07-04 12:39:19 -04:00
.gitignore Added venv check 2018-07-06 13:39:37 -04:00
hosts Add ansible, create directory structure 2018-04-07 21:47:15 +00:00
main.yml Correctly order plug cleaning 2018-07-05 17:18:54 -04:00
README.md Make cleaning directory work properly 2018-07-05 17:15:28 -04:00
requirements.txt Added venv check 2018-07-06 13:39:37 -04:00
sync.sh Merge branch 'feature/ansible' of austenwares.com:stonewareslord/sync into feature/ansible 2018-07-06 13:41:44 -04:00

Sync

Examples

Delete everything in skel

./sync.sh clean

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

Sync for root

./sync.sh default,vim --become --ask-become-pass

Sync syncs tmux/vim/bash config files with one command

Usage:

usage: sync.sh [-h] [-t] [-c] [-b] [-s] [-d]

optional arguements:
  -h  Show this help message and exit
  -t  Syncs tmux configuration file
  -c  Syncs other configuration files
  -b  Syncs Vim bundles
  -s  Syncs computer with server applications in server.txt
  -d  Syncs computer with desktop applications in desktop.txt

Or, install vim bundles and vimrc, customizing which bundles you use first (requires curl and vim packages):

mkdir -p ~/.vim/plugin/ ~/.vim/backup/ ~/.vim/undo/ ~/.vim/tmp/ ~/.vim/bundle/ ~/.vim/bundle/ ; if [ ! -f ~/.vim/plugin/sessionman.vim ] ; then curl -o ~/.vim/plugin/sessionman.vim http://www.vim.org/scripts/download_script.php?src_id=15599 ; fi ; if [ ! -d ~/.vim/bundle/vundle/ ] ; then git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle ; fi ; curl -o ~/.vimrc -k https://austenwares.com/gitlab/stonewareslord/Sync/raw/master/vimrc ; vim ~/.vimrc +"execute \"normal /Bundle 'gmarik\/vundle'\<CR>\"" +"execute \"normal :nohlsearch\<CR>:function Save()\<CR>w\<CR>BundleInstall\<CR>qa\<CR>endfunction\<CR>\"" +"nnoremap <F2> :call Save()<CR>:so ~/.vimrc<CR>:BundleInstall<CR>" ; echo "Installation should be complete. Run \"vim\" to check"

Usage: run this command and it will automatically load the bundle list with descriptions of each. Delete the ones you don't want to install and press F2 in normal mode to install al at once.

Or, temporarily load the bashrc (requires curl package):

curl -k -o /tmp/tmprc https://gitea.austenwares.com/stonewareslord/Sync/raw/master/tmprc && . /tmp/tmprc ; rm /tmp/tmprc

Or, clone the sync project and add all origins automatically:

mkdir sync&&cd sync&&git init&&git remote add testorigin https://gitea.austenwares.com/stonewareslord/Sync.git&&git config http.sslVerify false&&git pull testorigin master&&. bashrc&&git remote rm testorigin&&initify stonewareslord Sync -r