https://github.com/progrhyme/dot-sh
A tiny dotfiles framework for multiple environments
https://github.com/progrhyme/dot-sh
dotfiles shell shell-script
Last synced: 2 months ago
JSON representation
A tiny dotfiles framework for multiple environments
- Host: GitHub
- URL: https://github.com/progrhyme/dot-sh
- Owner: progrhyme
- License: mit
- Created: 2020-05-28T18:06:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-24T18:30:40.000Z (about 6 years ago)
- Last Synced: 2025-04-10T05:43:41.749Z (about 1 year ago)
- Topics: dotfiles, shell, shell-script
- Language: Shell
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# dot-sh
A few shell scripts to help you organize dotfiles for multiple environments.
# Usage
```sh
DOTSH_ROOT=path/to/dot-sh
DOTS_ROOT=path/to/dotfiles
DOTS_ENV=darwin
# Loads all scripts in this project
. $DOTSH_ROOT/dot.sh
require .profile.extra
```
Then, `$DOTS_ROOT/.profile.extra` and `$DOTS_ROOT/envs/darwin/.profile.extra` are sourced in order.
## Option: install by shelp
You can install **dot-sh** by [progrhyme/shelp](https://github.com/progrhyme/shelp).
```sh
$ shelp install progrhyme/dot-sh
```
Then, you can use `dot.sh` like this way:
```sh
#!/path/to/your-favorite-shell
eval "$(shelp init -)"
DOTS_ROOT=path/to/dotfiles
DOTS_ENV=darwin
include dot-sh dot.sh
```
# License
The MIT License.
Copyright (c) 2020 IKEDA Kiyoshi.