Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(--dotfiles): just like stow --dotfiles #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

menghuu
Copy link

@menghuu menghuu commented Jul 4, 2024

Treating a source file or folder named 'dot-prefix-something' is equivalent to a destination file or folder named '.prefix-something'

https://man.archlinux.org/man/stow.8#dotfiles

menghuu added 3 commits July 4, 2024 16:29
Treating a source file or folder named 'dot-prefix-something' is
equivalent to a destination file or folder named '.prefix-something'

https://man.archlinux.org/man/stow.8#dotfiles
@menghuu
Copy link
Author

menghuu commented Jul 4, 2024

case:

dploy on  master [?] is 📦 v0.1.3-beta via 🐍 v3.6.2 (venv)
❯ tree /tmp/stow/ -a
/tmp/stow/
├── source
│   ├── aaa
│   │   ├── bbb
│   │   ├── dot-aaa
│   │   └── dot-ccc
│   │       ├── bbb
│   │       └── dot-aaa
│   └── dot-bbb
└── target

5 directories, 5 files
dploy on  master [?] is 📦 v0.1.3-beta via 🐍 v3.6.2 (venv)
❯ dploy stow --dotfiles /tmp/stow/source /tmp/stow/target
dploy stow: link /tmp/stow/target/aaa => ../source/aaa
dploy stow: link /tmp/stow/target/.bbb => ../source/dot-bbb
dploy on  master [?] is 📦 v0.1.3-beta via 🐍 v3.6.2 (venv)
❯ tree /tmp/stow/ -a
/tmp/stow/
├── source
│   ├── aaa
│   │   ├── bbb
│   │   ├── dot-aaa
│   │   └── dot-ccc
│   │       ├── bbb
│   │       └── dot-aaa
│   └── dot-bbb
└── target
    ├── aaa -> ../source/aaa
    └── .bbb -> ../source/dot-bbb

6 directories, 6 files
dploy on  master [?] is 📦 v0.1.3-beta via 🐍 v3.6.2 (venv)
❯ dploy unstow --dotfiles /tmp/stow/source /tmp/stow/target
dploy unstow: unlink /tmp/stow/target/aaa => ../source/aaa
dploy unstow: unlink /tmp/stow/target/.bbb => ../source/dot-bbb
dploy on  master [?] is 📦 v0.1.3-beta via 🐍 v3.6.2 (venv)
❯ tree /tmp/stow/ -a
/tmp/stow/
├── source
│   ├── aaa
│   │   ├── bbb
│   │   ├── dot-aaa
│   │   └── dot-ccc
│   │       ├── bbb
│   │       └── dot-aaa
│   └── dot-bbb
└── target

5 directories, 5 files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant