-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci]
- Loading branch information
Showing
1 changed file
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,52 @@ | ||
## myrc | ||
# myrc | ||
|
||
Symlinking CLI tool for dotfiles (or any other configuration files organized in a directory). | ||
|
||
## Install | ||
|
||
| Operating system | Link | | ||
|---|---| | ||
| Ubuntu 22.04 (Jammy Jellyfish) | [:arrow_upper_right:](https://github.com/kucaahbe/myrc.d/releases/latest) | | ||
| Ubuntu 20.04 (Focal Fossa) | [:arrow_upper_right:](https://github.com/kucaahbe/myrc.d/releases/latest) | | ||
| macOS | [:arrow_upper_right:](https://github.com/kucaahbe/myrc.d/releases/latest) | | ||
|
||
### Build | ||
|
||
Install [D compiler](https://dlang.org/download.html), `cd` into directory and run `dub`: | ||
|
||
```console | ||
dub build --build=release | ||
``` | ||
|
||
#### Build issues | ||
|
||
[documented here](build_issues.md) | ||
|
||
## Usage | ||
|
||
In the directory from where the app is started, the `install.sdl` manifest file is required: there should be specified | ||
folder installation details: | ||
|
||
``` | ||
# the "install" section is mandatory | ||
install { | ||
ln "bashrc", "~/.bashrc" | ||
ln "bash_profile", "~/.bash_profile" | ||
} | ||
``` | ||
|
||
Without arguments - shows current state: | ||
```console | ||
me@host:~/doftiles$ myrc | ||
/home/me/dotfiles: | ||
+ /home/me/dotfiles/bashrc -> /home/me/.bashrc | ||
- /home/me/dotfiles/bash_profile # no such file or directory (need -> /home/me/.bash_profile) | ||
``` | ||
|
||
The `install` sub-command issues the install process: | ||
```console | ||
me@host:~/doftiles$ myrc | ||
/home/me/dotfiles install: | ||
/home/me/dotfiles/bashrc -> /home/me/.bashrc | ||
/home/me/dotfiles/bash_profile -> /home/me/.bash_profile | ||
``` |