Install stow
and neovim
sudo apt-get update && sudo apt-get install stow neovim -y
Remove dotfiles from home directory
rm -rf .aliases .bashrc .config .profile .vim .vimrc autoload
Clone including submodules
git clone --recursive [email protected]:naing2victor/dotfiles.git
In case you forget to recursively clone, load submodules to cloned repository
git submodule update --init --recursive
or
git submodule init
git pull --recurse-submodules
Check only without pulling into local directory
git submodule init
git fetch --recurse-submodule
Update submodules from remote with new commits
git submodule update --remote --recursive
or
git submodule foreach git pull origin master
stow bash/ config/ vim/
mkdir -p ~/dotfiles/vim/.vim/autoload ~/dotfiles/vim/.vim/bundle && \
curl -LSso ~/dotfiles/vim/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git submodule add [email protected]:morhetz/gruvbox.git ~/dotfiles/vim/.vim/bundle/gruvbox
git submodule add [email protected]:dracula/vim.git ~/dotfiles/vim/.vim/bundle/dracula
git submodule add [email protected]:vim-airline/vim-airline-themes.git ~/dotfiles/vim/.vim/bundle/vim-airline-themes
git submodule add [email protected]:vim-airline/vim-airline.git ~/dotfiles/vim/.vim/bundle/vim-airline
git submodule add [email protected]:preservim/nerdtree.git ~/dotfiles/vim/.vim/bundle/nerdtree
git submodule add [email protected]:ctrlpvim/ctrlp.vim.git ~/dotfiles/vim/.vim/bundle/ctrlp
git submodule add [email protected]:junegunn/fzf.git ~/dotfiles/vim/.vim/bundle/fzf
git submodule add [email protected]:tpope/vim-fugitive.git ~/dotfiles/vim/.vim/bundle/vim-fugitive
git submodule add [email protected]:easymotion/vim-easymotion.git ~/dotfiles/vim/.vim/bundle/vim-easymotion
git submodule add [email protected]:sheerun/vim-polyglot.git ~/dotfiles/vim/.vim/bundle/vim-polyglot
git submodule add http://github.com/[user]/[plugin] bundle/[plugin-name]
git add .
git commit -m "Update [plugin] [vimrc]"
cd bundles/[plugin]
git pull
git submodule deinit -f bundle/[plugin-name]
rm -rf bundle/[plugin-name]
git rm -rf bundle/[plugin-name]