Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matijs/dotfiles
dotfiles
https://github.com/matijs/dotfiles
bash dotfiles dotfiles-linux dotfiles-macos vim vimrc vimrc-configuration
Last synced: 12 days ago
JSON representation
dotfiles
- Host: GitHub
- URL: https://github.com/matijs/dotfiles
- Owner: matijs
- Created: 2021-05-13T12:22:39.000Z (over 3 years ago)
- Default Branch: dotfiles
- Last Pushed: 2024-10-05T05:48:59.000Z (about 1 month ago)
- Last Synced: 2024-10-14T22:11:07.457Z (25 days ago)
- Topics: bash, dotfiles, dotfiles-linux, dotfiles-macos, vim, vimrc, vimrc-configuration
- Language: Shell
- Homepage: https://probablerobot.net/2021/05/keeping-'live'-dotfiles-in-a-git-repo/
- Size: 106 KB
- Stars: 10
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
Awesome Lists containing this project
README
# Dotfiles
There's a [blogpost][0] explaining the setup of the repository.
## Usage
The repository is set up so that it can be cloned in my home directory to easily
keep my dotfiles under version control.Cloning the repository elsewhere and symlinking should also work fine but it's
not how it's set up and it's not tested.> [!WARNING]
> Feel free to use these dotfiles but make sure to fork the repository
> and make your own changes.```bash
~ $ export GIT_DIR="${HOME}/.dotfiles"
~ $ git --work-tree="${HOME}" init
~ $ git config status.showUntrackedFiles no
# substitute the correct URL in the next command
~ $ git remote add origin [email protected]:matijs/dotfiles
~ $ git fetch
```> [!CAUTION]
> The next command **will** overwrite local files. Make sure you know what
> you're doing.```bash
~ $ git reset --hard origin/dotfiles
~ $ unset GIT_DIR
```## Structure
To not clutter the home directory more than strictly necessary, configuration
files are kept in `~/.config` as much as possible.As for this README file, it lives in `~/.github/README.md`.
[0]: https://probablerobot.net/2021/05/keeping-'live'-dotfiles-in-a-git-repo/