Coder Social home page Coder Social logo

dotfiles's Introduction

Dotfiles management using Chezmoi

To use Chezmoi on another system, you need to follow these steps:

  1. Install Dependencies:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Install rust
    cargo install sccache # install sccache to build up cache for rust packages that will speed up build times
    cargo install cargo-binstall # install binstall to not have to build every crate
    cargo install bat rg cargo-update # install better alternatives to cat and grep and update utility
    sudo apt install fish chezmoi  # use appropriate package manager
    curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish # install ohmyfish
    curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher # install fisher
    fisher install edc/bass # install bass for fisher compatibility with bash
    
  2. Install Chezmoi: Install Chezmoi on the new system by following the installation instructions specific to your operating system and instantly link to this repo:

    sh -c "$(curl -fsLS chezmoi.io/get)" -- init --apply Tanguille

    2b. Apply Dotfiles: If you are unsure about immediatly applying all dotfiles to your system, apply your dotfiles to the new system by running the following command:

    chezmoi apply

    Chezmoi will create the necessary symbolic links to configure your dotfiles based on the repository's contents.

  3. Update Dotfiles: If you make any changes to your dotfiles on the new system, you can synchronize them back to the repository by running:

    chezmoi diff  # View the differences
    chezmoi update  # Update the repository with changes

    The chezmoi diff command shows the differences between the repository and your local dotfiles, while chezmoi update updates the repository with the changes you made.

By following these steps, you can easily use Chezmoi to manage your dotfiles across multiple systems, ensuring consistency and easy synchronization.

dotfiles's People

Contributors

deepsource-io[bot] avatar tanguille 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.