Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hidakatsuya/flexdot
A Flexible and Rake based dotfile manager.
https://github.com/hidakatsuya/flexdot
dotfiles rake ruby
Last synced: 3 months ago
JSON representation
A Flexible and Rake based dotfile manager.
- Host: GitHub
- URL: https://github.com/hidakatsuya/flexdot
- Owner: hidakatsuya
- License: mit
- Created: 2020-07-18T15:56:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-30T14:50:46.000Z (about 1 year ago)
- Last Synced: 2024-10-10T03:44:55.674Z (3 months ago)
- Topics: dotfiles, rake, ruby
- Language: Ruby
- Homepage:
- Size: 66.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Flexdot
[![Gem Version](https://badge.fury.io/rb/flexdot.svg)](https://badge.fury.io/rb/flexdot)
[![Test](https://github.com/hidakatsuya/flexdot/workflows/Test/badge.svg?branch=master)](https://github.com/hidakatsuya/flexdot/actions?query=workflow%3ATest)A Flexible and Rake based dotfile manager.
## Getting Started
### Prerequisite
Ruby 3.0+
### Installing
Create the following directory structure:
```
$HOME/
├── dotfiles/
:
```Create a `Gemfile` to install Flexdot:
$ cd $HOME/dotfiles
$ bundle initAdd this line to the `Gemfile`:
```ruby
gem 'flexdot'
```Or install it yourself as:
$ gem install flexdot
Then, create a `$HOME/dotfiles/Rakefile` with the following codes:
```ruby
require 'flexdot'Flexdot.setup(
home_dir: '/home/username',# (optional)
# The dotfile directory path.
# Default '.'.
dotfiles_dir: '.'# (optional)
# Whether or not to colorize the output
# Default: true
output_colorize: true# (optional)
# Whether to automatically delete old backups.
# If nil, do not delete, otherwise keep to the specified number of backups.
# Default: nil
keep_max_backup_count: 10
)
```It is recommended that you add the Rakefile to `gitignore`:
```
# .gitignore
Rakefile
```Finally, run `rake -T` in the `$HOME/dotfiles` and make sure that the output is as follows:
$ rake -T
rake clear_backups## Usage
See [doc/example.md](doc/example.md)
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Flexdot project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hidakatsuya/flexdot/blob/master/CODE_OF_CONDUCT.md).