https://github.com/onurozuduru/dothome
Simple dot files manager script
https://github.com/onurozuduru/dothome
Last synced: 8 months ago
JSON representation
Simple dot files manager script
- Host: GitHub
- URL: https://github.com/onurozuduru/dothome
- Owner: onurozuduru
- License: mit
- Created: 2024-02-26T23:45:46.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-10T23:43:00.000Z (over 1 year ago)
- Last Synced: 2024-03-11T00:33:59.951Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dothome
Simple dot files manager script that requires Bash version 4 or higher.```bash
Usage: ./dothome [ -b | --base ] [ -d | --dotfiles ] [ -n | --new ] [ -i | --init ] [ -a | --add ] [ -h | --help ]
Simple dot files manager.
-b,--base Base directory to use for operations. Default: '${HOME}'
-d,--dotfiles Name of a directory relative to base directory to use for operations. Default: 'dotfiles'
-n,--new Create new dot files directory under base directory.
-i,--init Link files from dot files directory to their relative locations under base directory.
-a,--add Move given file to dot files directory and create link under base directory.
-h,--help Display help.
```## How It Works
It uses `${HOME}` as default base directory and takes with `-d` a relative directory name to use as dot files directory.
Basically reflects the home folder structure under dot files directory and links related files to their dot files directory version.
It converts names start with '.' to a version starts with 'dot.' under dot files directory to avoid hidden files. Name of the linked version under base directory remains the same.### New
Creates a new dot files directory.### Add
Moves given file to dot files directory then creates link to the original location.
The moved version of the file starts with 'dot.' if it starts with '.'### Init
Creates links relative to dot files location under base directory.
If there is already created dot files then it is possible to link files under home with this option.