Git Product home page Git Product logo

my-config's Introduction

My Config Files

As-salamu alaykum, this was my approach in the past: I was struggling to automate synchronization of my configurations, until I had an idea. I wanted to hard-link my config files putting them is a sub-directory linux in a repo also containing my window's configs.

But it seems easier to just git init in my ~, $HOME, ignore all files, exclude my config files. Unfortunately, there was some problems:

  1. When I open my editor neovim, I have a filemanager called NERDTree, the workspace directory is set by default to the directory containing .git, in which we have git inited, in our case it is $HOME.
  2. I was using zsh in my terminal, there is a git plugin to show my current status and branch, it will always be there even if your are in Desktop for example.

How I Manage Linux's config

Just hard-link all config files inside $HOME directory into ./linux, we are done. But I had hard time build scripts to do this linking. See ./linux-hard-link-files.bash, ./linux-linked*.

To target config files, you have to include them in ./linux-linked-files.txt the same way you ignore in .gitignore.

Notes

  • I don't include .npmrc as it contains my registry _authToken.

License

MIT

my-config's People

Contributors

muhammadsawalhy avatar

Watchers

James Cloos 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.