Coder Social home page Coder Social logo

.dotfiles's Introduction

.dotfiles

This tree is meant for dotfiles management in the system. It comprises of the config files essential to the specific utils. I am using this tree in conjunction with stow for easier management of config files. Stow creates symlinks to the config files at target locations, with installation image heirarchy being specified in the package directory. Know more about the terminology here.

For this case:

  • .dotfiles is the stow directory. Full path: ~/Desktop/user_name/.dotfiles
  • ~/ is the target directory. It usually is the parent of stow dir, unless specific explicitly.

For a package, say nvim,

  • It's installation image would be:
/nvim
    ├── after
    │   └── plugin
    │       ├── cfg_plugin_1.lua
    │       └── cfg_plugin_2.lua
    ├── init.lua
    ├── lua
    │   └── dir
    │       └── stuff.lua
    └── plugin
        └── packer_compiled.lua

And this installation image would need to be inside ~/.config/ So, for nvim, the target dir would be ~/.config. Upon running stow nvim (inside stow directory, ~/.dotfiles in this case) stow will create a dir named nvim inside ~/.config dir. This will be happening because we are keeping the nvim config in a separate nvim dir nested inside our stow dir with the target dir path(for nvim, ~/.config/nvim in this case) in it.

In order to stow a config file:

  • Make sure it does not exist already inside target dir
  • Place it's config in a separate nested dir inside stow dir
  • stow that dir.
  • Changes will now be reflected, that file will be visible in the target dir.
  • Also, after updating the zshrc, it needs not be sourced if updated in the stow dir and stowed too.

fwiw, this has been done via docs solely, and a blog, link.

Installation

  1. nvim
  • Install nvim firstly from relevant package manager
  • Install Packer from here
  • Execute stow nvim
  • Source the packer.lua file via :so
  • :PackerSync & :PackerInstall
  • It should be ready now

.dotfiles's People

Contributors

ayush-oyorooms avatar

Stargazers

 avatar

Watchers

 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.