Skip to content

Feature request: create a new package from existing files in the target directory #137

@Jajasek

Description

@Jajasek

Hello, I just installed stow to manage my dotfiles. Now I have to manually create the directory structure in the stow directory and move my dotfiles there, and then stow them. I would have very much appreciated if stow could automate this:

~$ export STOW_DIR=~/dotfiles
   # create a new package `bash` and let it adopt the given files
~$ stow --create bash .bashrc .bash_profile
   # I forgot a file - add it to the existing package
~$ stow --create bash .inputrc

I figured that a partial automation is possible in the current version using --adopt:

~/dotfiles$ mkdir bash
~/dotfiles$ touch bash/.bashrc bash/.bash_profile bash/.inputrc
~/dotfiles$ stow --adopt bash

so maybe this could be mentioned in the docs as a useful tip until (if ever?) --create is implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions