Giter Club home page Giter Club logo

dotfile's Introduction

Nihar's fybox Dotfiles

Instructions fo the dotfiles repository at https://gitlab.com/niharokz/dotfile.

Introduction

The dotfiles in this repository are installed using a bare Git repository. This method does not use symlinks (like most other dotfile repositories).

After the installation, all the dotfiles will be physically present in your home folder, yet, you will still have them under full version control.

Look and Feel

Screenshot

Usage

Now all the dotfiles from the repository are installed in your home directory. However, as mentioned, you still have them under full version control via the bare Git repository in ~/.dotfiles.

To interact with the bare Git repository, you need the following alias:

dot='/usr/bin/git --git-dir=$HOME/.config/.dotfile --work-tree=$HOME'

Note: the .alias file in the dotfiles repository already contains this alias, so you're good to go.

With the dot alias, you can now manage the dotfiles via the bare Git repository, just as you would with the git command:

Edited your dotfiles? No problem, commit and push the changes:

dot add ~/.vimrc
dot commit -m "Edit .vimrc"
dot push

Pushed changes to the remote repository from another machine? Easy, just pull down the new version:

dot pull

Want to know what's going on?

dot status

Don't want to see untracked files:

dot config status.showUntrackedFiles no

Checkout

While installing dot files in a new system:

git clone --bare [email protected]:niharokz/dotfile.git $HOME/.config/.dotfile
dot='/usr/bin/git --git-dir=$HOME/.config/.dotfile --work-tree=$HOME'
dot checkout

References

Using a bare Git repository is described here:

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.