Forcing a directory to be split open
Antony Lee <[email protected]> Wed, 5 Sep 2018 19:06:58 +0200
| Newsgroups | gmane.comp.gnu.stow.general |
|---|---|
| Message-ID | <CAGRr6BEw-Ga8QHeReYsdYTWLTQsFqbjVWgD0pYmTude=xoXbug@mail.gmail.com> |
--00000000000005bfb4057522ce75 Content-Type: text/plain; charset="UTF-8" Hi, Like many others, I use stow to manage my dotfiles across multiple machines. In particular, a small exerpt of my stow tree includes ~/dotfiles/vim/plugin ~/dotfiles/vim/syntax ... so I can just cd ~/dotfiles && stow -S vim after git-cloning dotfiles to a new machine. But that'll just do a symlink ~/.vim -> ~/dotfiles/.vim, which is not what I want: this will cause e.g. ~/.vim/undo to end up in ~/dotfiles as well. So I *always* want to split open ~/.vim. In this specific case I could alternatively get away with gitignoring all other directories in ~/.vim, but this is less optimal for dotfiles which reside e.g. in ~/.config, as I really don't want ~/.config to be a symlink but rather ~/.config/foo to be one. So I need to first create ~/.vim myself and manually add a directory into it (e.g. ~/.vim/undo) before stowing my dotfiles, to force splitting that directory. It would be nice it it was possible to create e.g. ~/dotfiles/vim/.stow-force-split (name is up to bikeshedding) to say, "you are not allowed to symlink this directory directly, but must split it". Looking forward to your thoughts, Antony --00000000000005bfb4057522ce75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,<div><br></div><div>Like many others, I use stow to man= age my dotfiles across multiple machines.=C2=A0 In particular, a small exer= pt of my stow tree includes</div><div><br></div><div>=C2=A0 ~/dotfiles/vim/= plugin</div><div>=C2=A0 ~/dotfiles/vim/syntax</div><div>=C2=A0 ...</div><di= v><br></div><div>so I can just cd ~/dotfiles && stow -S vim after g= it-cloning dotfiles to a new machine.</div><div><br></div><div>But that'= ;ll just do a symlink ~/.vim -> ~/dotfiles/.vim, which is not what I wan= t: this will cause e.g. ~/.vim/undo to end up in ~/dotfiles as well.=C2=A0 = So I *always* want to split open ~/.vim.=C2=A0 In this specific case I coul= d alternatively get away with gitignoring all other directories in ~/.vim, = but this is less optimal for dotfiles which reside e.g. in ~/.config, as I = really don't want ~/.config to be a symlink but rather ~/.config/foo to= be one.</div><div>So I need to first create ~/.vim myself and manually add= a directory into it (e.g. ~/.vim/undo) before stowing my dotfiles, to forc= e splitting that directory.=C2=A0 It would be nice it it was possible to cr= eate e.g. ~/dotfiles/vim/.stow-force-split (name is up to bikeshedding) to = say, "you are not allowed to symlink this directory directly, but must= split it".</div><div><br></div><div>Looking forward to your thoughts,= </div><div><br></div><div>Antony</div></div> --00000000000005bfb4057522ce75--