https://github.com/whatacold/extensible-dotfiles
Manage dotfiles in an extensible way!
https://github.com/whatacold/extensible-dotfiles
Last synced: about 2 months ago
JSON representation
Manage dotfiles in an extensible way!
- Host: GitHub
- URL: https://github.com/whatacold/extensible-dotfiles
- Owner: whatacold
- Created: 2021-06-26T07:04:40.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-03T02:35:42.000Z (about 3 years ago)
- Last Synced: 2025-01-31T09:28:43.582Z (4 months ago)
- Language: Python
- Homepage:
- Size: 95.7 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This extensible-dotfiles manages dotfiles in an extensible way:
- Keep the universal part of dotfiles in the `home/` directory, and keep the directory
hierarchy same as `$HOME`Since different dotfiles have different comment chars, the files under `home/` should
indicate that at the first line, for example if the comment char is `#`.# THE COMMENT CHAR
or `;`:
; THE COMMENT CHAR
- Type `make` to install them
It will keep the original content if target files already exist.
The `home/` file content goes inside a block of `EXTENSIBLE-DOTFILES ...`,
and the final dotfiles will look like:```
# EXTENSIBLE-DOTFILES BEGINS, DO NOT EDIT DIRECTLY {
export PATH="$HOME/local/bin/:$PATH"
# colorscheme
# alias
# EXTENSIBLE-DOTFILES ENDS, DO NOT EDIT DIRECTLY }
export PATH="$HOME/bin:$PATH"
```- Want to have local-specific config? Just edit the final dotfiles outside the `EXTENSIBLE-DOTFILES` block.
Please note that, you may also want to *version-control the final dotfiles* in another git repo,
if you have many local-specific config.