Giter VIP home page Giter VIP logo

dotfiles's Introduction


Prerequisites

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 into new machine

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

GNU Stow for soft links

stow bash/ config/ vim/

Add submodules for vim plugins

Install vim pathogen

mkdir -p ~/dotfiles/vim/.vim/autoload  ~/dotfiles/vim/.vim/bundle && \
curl -LSso ~/dotfiles/vim/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim

Add vim plugins

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

Working with git submodules for vim

Installing a plugin as a submodule

git submodule add http://github.com/[user]/[plugin] bundle/[plugin-name]
git add .
git commit -m "Update [plugin] [vimrc]"

Update each plugin manually

cd bundles/[plugin]
git pull

Removing a plugin

git submodule deinit -f bundle/[plugin-name]
rm -rf bundle/[plugin-name]
git rm -rf bundle/[plugin-name]

Pathogen with Submodules Guides

dotfiles's People

Contributors

naing2victor avatar

Stargazers

Sharky Impat avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.