Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

hidakatsuya/flexdot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Note

This project is no longer maintained. Please use the Go implementation, flexdot-go, instead.

Flexdot

Gem Version Test

A Flexible and Rake based dotfile manager.

Getting Started

Prerequisite

Ruby 3.2 or later

Installing

Create the following directory structure:

$HOME/
├── dotfiles/
:

Create a Gemfile to install Flexdot:

$ cd $HOME/dotfiles
$ bundle init

Add this line to the Gemfile:

gem 'flexdot'

Or install it yourself as:

$ gem install flexdot

Then, create a $HOME/dotfiles/Rakefile with the following codes:

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

License

The gem is available as open source under the terms of the MIT License.

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.

About

A Flexible and Rake based dotfile manager.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors

Languages