
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Dotfiler is a CLI gem for managing dotfiles.
Make sure you have Ruby >= 2.3 installed.
To install Dotfiler, run:
$ gem install dotfiler
Dotfiler works Linux and MacOS only.
$ dotfiler init --help
Command:
dotfiler init
Usage:
dotfiler init PATH
Description:
Create config file. Create dotfiles directory at specified path. Initialize git repo.
Arguments:
PATH # REQUIRED Path where the Dotfiles directory will be created
Options:
--[no-]git # Initialize git repo for dotfiles directory, default: true
--help, -h # Print this help
Example:
$ dotfiler init ~/code/my_dotfiles
# Creating config file (/Users/aleksandar/.dotfiler)...
# Creating dotfiles directory (/Users/aleksandar/code/my_dotfiles)...
# Creating dotfiles file (/Users/aleksandar/code/my_dotfiles/.dotfiles)...
# Initialized empty Git repository in /Users/aleksandar/code/my_dotfiles/.git/
As you can see, init
command does 4 things:
.dotfiler
) in your home directory..dotfiles
) which holds necessary info about each dotfile
you add. The file is created in dotfiles directory.--no-git
option.NOTE: If any of the files/dirs already exist, you will be prompted to either overwrite or keep them.
To add a file/directory to your dotfiles, use add
command.
$ dotfiler add --help
Command:
dotfiler add
Usage:
dotfiler add PATH
Description:
Add specified file/directory to dotfiles
Arguments:
PATH # REQUIRED File/directory path
Options:
--name=VALUE, -n VALUE # Name which will be assigned to dotfile
--target=VALUE, -t VALUE # Path to where the symlink will be created
--help, -h # Print this help
Example:
$ dotfiler add ~/.zshrc
# Moving /Users/aleksandar/.zshrc to dotfiles directory (/Users/aleksandar/code/my_dotfiles)...
# Symlinking dotfile (/Users/aleksandar/code/my_dotfiles/.zshrc) to /Users/aleksandar/.zshrc...
# Adding zshrc to dotfiles...
add
command does 3 things:
--target
option..dotfiles
file.Dotfile consists of name, path and link:
--name
option.
Name is used for specifying which dotfile to remove or edit.Aliases: a
To get a list of all currently managed dotfiles, use list
command.
$ dotfiler list --help
Command:
dotfiler list
Usage:
dotfiler list [NAMES]
Description:
List all managed dotfiles
Arguments:
NAMES # List only names of managed dotfiles
Options:
--help, -h # Print this help
Example:
$ dotfiler list
zsh
- LINK: /Users/aleksandar/.zshrc
- PATH: /Users/aleksandar/code/my_dotfiles/.zshrc
# to list dotfiles names only
$ dotfiler list names
Aliases: ls
To remove a dotfile, use remove
command.
$ dotfiler remove --help
Command:
dotfiler remove
Usage:
dotfiler remove NAME
Description:
Remove specified dotfile from dotfiles and restore it to it's original location
Arguments:
NAME # REQUIRED Name of the dotfile that should be removed
Options:
--help, -h # Print this help
Example:
$ dotfiler remove zshrc
# Removing symlink (/Users/aleksandar/.zshrc)...
# Restoring dotfile (/Users/aleksandar/code/my_dotfiles/.zshrc) to its original location (/Users/aleksandar/.zshrc)...
# Removing 'zsh' from dotfiles...
remove
command does 3 things:
.dotfiles
file.Aliases: rm
To edit a dotfile, use edit
command.
$ dotfiler edit --help
Command:
dotfiler edit
Usage:
dotfiler edit NAME
Description:
Edit specified dotfile. By default, dotfile will be opened in $EDITOR
Arguments:
NAME # REQUIRED Name of the dotfile you want to edit
Options:
--with=VALUE, w VALUE # Editor in which to open the specified dotfile
--help, -h # Print this help
$ dotfiler edit zshrc
#### This will open ~/code/my_dotfiles/.zshrc file in $EDITOR ####
You can specify a different editor by using --with
option:
$ dotfiler edit zshrc --with=vim
Aliases: e
To install all dotfiles, use install
command.
$ dotfiler install --help
Command:
dotfiler install
Usage:
dotfiler install PATH
Description:
Install dotfiles from existing dotfiles directory
Arguments:
PATH # REQUIRED Path to existing dotfiles directory
Options:
--help, -h # Print this help
Example:
$ dotfiler install ~/code/my_dotfiles
install
command will create symlinks of files located in specified dotfiles directory,
by looking at .dotfiles
file. If symlink's location is already taken, it will:
Backed up files will be placed in dotfiler_installation_backup_{{CURRENT_TIMESTAMP}}
directory, located in your home directory,
To back up existing dotfiles, use backup
command.
$ dotfiler backup --help
Command:
dotfiler backup
Usage:
dotfiler backup
Description:
Backup existing dotfiles directory
Options:
--help, -h # Print this help
Example:
$ dotfiler backup
# Backing up dotfiles directory (/Users/aleksandar/code/my_dotfiles) to Users/aleksandar/.dotfiler_backup_2018-29-05-10-00-00
To see what commands are available, use help
command:
$ dotfiler help
Aliases: -h, --help
To check Dotfiler version, run:
$ dotfiler version
Aliases: v, -v, --version
Bug reports and pull requests are welcome on GitHub at https://github.com/aradunovic/dotfiler. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Everyone interacting in the Dotfiler project’s codebases and issue trackers is expected to follow the code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that dotfiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.