link to git
Project description
This tool stores files in a git repository and creates links instead automatically. Files are kept in the same structure as they were before but can be categorized for easy accessibility.
using ltg
A typical folder will look a bit like this:
$ ls -ARl ~/.ltg .ltg/: total 84K drwxr-xr-x 2 user users 4.0K Jun 4 20:04 general drwxr-xr-x 2 user users 4.0K Jun 4 20:04 vim drwxr-xr-x 8 user users 4.0K Jun 5 21:53 .git -rw-r--r-- 1 user users 43 Jun 4 20:06 .gitmodule dotfiles/general total 12K drwxr-xr-x 2 user users 4.0K Jun 4 13:11 .gitconfig drwxr-xr-x 3 user users 4.0K Jun 4 13:22 .i3 -rw-r--r-- 1 user users 3.9K Jun 4 12:14 .bash_prompt -rw-r--r-- 1 user users 5.6K Jun 5 01:26 .bashrc dotfiles/vim total 4.0K drwxr-xr-x 3 user users 4.0K Jun 4 13:22 .vim ...
Getting there is really simple. To add a new file, call:
$ ltg store ~/.xinitrc ~/.Xdefaults ~/.bashrc $ ltg store --category vim ~/.vim
it will now be added to your dotfile folder (by default ~/.ltg), a git repository should be set up and the files have been added to the index.
To link the files or recreate lost links you can use:
$ ltg link
ltg will then automatically create links to all stored files.
To automatically link newly stored files, use add:
$ ltg add -c vim .vim
To update changed files run:
$ ltg git -- add ~/dotfiles/bash/.bashrc
or simply:
$ ltg git -- add -A
The git side behaves mostly like standard git, meaning you can run:
$ ltg git -- remote add origin git@bitbucket.com:user/dotfiles.git $ ltg git -- pull --recurse-submodules origin master $ ltg link $ ltg store -c bash ~/.bashrc $ ltg git -- push
TODO
unlinking
removing
atomatic commit messages
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ltg-0.1.0.tar.gz
.
File metadata
- Download URL: ltg-0.1.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e6c89bbfeee6655be548b8087ce297b7baed9581790f784f1e4251cbb04da0e |
|
MD5 | e41715e8507ad6b2a9e81582db89f8ca |
|
BLAKE2b-256 | 3cb3aedc7a2b6cc17000b1bbb196e9caa48bf02d62d29bce152be2826ce7e5bb |