From c678ce8f144da6f211f3e0a516ec2d8c8ca5b835 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Thu, 15 Mar 2018 10:52:14 -0400 Subject: [PATCH] Add readme --- README.md | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 6b419ba..3559e12 100644 --- a/README.md +++ b/README.md @@ -5,34 +5,26 @@ Sync syncs tmux/vim/bash config files with one command Usage: -```sh -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 -``` + 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): -```sh -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'\\"" +"execute \"normal :nohlsearch\:function Save()\w\BundleInstall\qa\endfunction\\"" +"nnoremap :call Save():so ~/.vimrc:BundleInstall" ; echo "Installation should be complete. Run \"vim\" to check" -``` + 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'\\"" +"execute \"normal :nohlsearch\:function Save()\w\BundleInstall\qa\endfunction\\"" +"nnoremap :call Save():so ~/.vimrc:BundleInstall" ; 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): -```sh -curl -k -o /tmp/tmprc https://98.26.78.121/gitlab/stonewareslord/Sync/raw/master/tmprc && . /tmp/tmprc ; rm /tmp/tmprc -``` + curl -k -o /tmp/tmprc https://98.26.78.121/gitlab/stonewareslord/Sync/raw/master/tmprc && . /tmp/tmprc ; rm /tmp/tmprc Or, clone the sync project and add all origins automatically: -```sh -mkdir sync&&cd sync&&git init&&git remote add testorigin https://98.26.78.121/gitlab/stonewareslord/Sync.git&&git config http.sslVerify false&&git pull testorigin master&&. bashrc&&git remote rm testorigin&&initify stonewareslord Sync -r -``` + mkdir sync&&cd sync&&git init&&git remote add testorigin https://98.26.78.121/gitlab/stonewareslord/Sync.git&&git config http.sslVerify false&&git pull testorigin master&&. bashrc&&git remote rm testorigin&&initify stonewareslord Sync -r