https://github.com/atsushi130/dot
dot is dotfiles manage cli.
https://github.com/atsushi130/dot
dotfiles dotfiles-install dotfiles-installer dotfiles-manager swift-cli
Last synced: 3 months ago
JSON representation
dot is dotfiles manage cli.
- Host: GitHub
- URL: https://github.com/atsushi130/dot
- Owner: atsushi130
- License: mit
- Created: 2019-03-31T05:45:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-05T02:39:06.000Z (about 6 years ago)
- Last Synced: 2025-01-19T22:40:03.833Z (5 months ago)
- Topics: dotfiles, dotfiles-install, dotfiles-installer, dotfiles-manager, swift-cli
- Language: Swift
- Homepage:
- Size: 14.6 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
dot
dot is dotfiles manage cli.
## Installation via Homebrew
```console
❯ brew tap atsushi130/tap
❯ brew install dot
```## Configuration
Please make dot.json confirm to the format, or generate by `dot init` command. And you upload it to dotfiles respository.
```
[
{
"name": "filename",
"type": "file or dir",
"input": "input_file_path_from_github",
"output": "output_file_path_to_local",
"chain": [] // chain install filenames (optional)
},
]
```- [Example dot.json](https://github.com/atsushi130/dotfiles/blob/master/dot.json)
## Usage
First, generate Github access token. [[Here](https://github.com/settings/tokens/new)]
Next, register generated Github access token and repository to dot.
```console
❯ dot token ${generated_github_access_token}
❯ dot repository atsushi130/dotfiles
```## Support commands
**install dotfiles**
```console
❯ dot install [--chain | -c] ${filename}
```**register github access token**
```console
❯ dot token ${github_token}
```**register dotfiles repository**
```console
❯ dot repository ${owner/repository}
```**example**
```console
❯ dot token f8a86be02ff77c0fa42d0fa16855d1e09a1affb6
❯ dot repository atsushi130/dotfiles
❯ dot install -c vimrc
```**coming soon**
```console
❯ dot init
```## Extension
Incremental search and install.
```console
normal
❯ dot list | fzf --reverse | xargs dot install
cool
❯ dot list | fzf-tmux -d 35% --preview 'echo ❯ dot install {}' --preview-window down:1 --ansi --reverse --prompt='install dotfile is ' | xargs dot install
```## Gif
## Using Library
- [Commandy](https://github.com/atsushi130/Commandy)
- [Scripty](https://github.com/atsushi130/Scripty)
- [Moya](https://github.com/Moya/Moya)## License
dot is available under the MIT license. See the [LICENSE file](https://github.com/atsushi130/dot/blob/master/license).[](https://app.fossa.com/projects/git%2Bgithub.com%2Fatsushi130%2Fdot?ref=badge_large)