Skip to content

This will be a simple go application to work with dot files.

License

Notifications You must be signed in to change notification settings

steffakasid/dof

Repository files navigation

dof

License Apache%202.0 blue link:https://github.com/steffakasid/dof/actions/workflows/codeql-analysis.yml link:https://github.com/steffakasid/dof/actions/workflows/release.yml link:https://github.com/steffakasid/dof/actions/workflows/go-test.yml

This little tool can be used to manage dot file based on a git bare repository. The basic manual process is described e.g. https://www.atlassian.com/git/tutorials/dotfiles

todo

  • make it easier to intialize a new repo e.g. use an argument to directly set the remote

how to use

Initialize a new repository

If you want to initialize a new repo you could just run dof init. This will basically setup a local git repository which can be used to add the dot files via dof add .dotfilename. Right now you have to manually add a remote to be able to publish the dot file repository e.g. to github. You can do this with the following command dof alias remote add origin <path-to-git-remote-repo>, git config --global init.defaultBranch main and dof alias branch set-upstream-to origin/main main. Afterward you can run dof sync to push all add files to the remote.

Checkout and setup an existing dot file repository

If you want to checkout an existing repository you can just run dof checkout <git-remote-repo>. This command will checkout the repository as a bare repo. Afterwards it will identify all included dot files, rename them and run a checkout on the bare repo. Afterwards you will have your dotfiles setup in your home directory from the dot file repo.

github actions

About

This will be a simple go application to work with dot files.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages