Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhammadsawalhy/my-config
Some config files
https://github.com/muhammadsawalhy/my-config
Last synced: 15 days ago
JSON representation
Some config files
- Host: GitHub
- URL: https://github.com/muhammadsawalhy/my-config
- Owner: MuhammadSawalhy
- License: mit
- Created: 2020-09-01T15:59:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T16:50:01.000Z (about 2 months ago)
- Last Synced: 2024-09-10T18:51:35.226Z (about 2 months ago)
- Language: Shell
- Size: 2.31 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 init`ed, 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