bug-stow
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

adopting dot-files does not work as expected


From: Karl Herbig
Subject: adopting dot-files does not work as expected
Date: Wed, 7 Aug 2024 21:02:04 +0200

Hello dear stow developers/community,

In my example I prepared a git repo at `~/projects/dotfiles`.
There I `touch`ed `~/projects/dotfiles/git/dot-gitconfig`.

My assumption was, that I could now use `--adopt` to  transfer the content of the `~/.gitconfig` file into `~/projects/dotfiles/git/dot-gitconfig`. Unfortunately, `--adopt` does not respect the `--dotfiles` argument, moving the `.gitconfig` right beside `dot-gitconfig` but creating a link that leads to the still empty `dot-gitconig`.

Here is a little out put for more context:

```
$ pwd
~/projects/dotfiles

$ tree -a git
git
└── dot-gitconfig

$ stow --adopt --dotfiles -v -n -t ~ git
MV: .gitconfig -> projects/dotfiles/git/.gitconfig
LINK: .gitconfig => projects/dotfiles/git/dot-gitconfig
WARNING: in simulation mode so not modifying filesystem.

$ tree -a git
git
├── dot-gitconfig
└── .gitconfig

$ ls -la ~/.gitconfig
lrwxrwxrwx 1 muro muro 35 Aug  7 20:57 ~/.gitconfig -> projects/dotfiles/git/dot-gitconfig

```

Best Regards
Karl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]