You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if I execute rcup, it doesn't ask to overwrite the file .gnupg/gpg-agent.conf with a symlink to dotfiles-local/gnupg/gpg-agent.conf like I would expect. All other symlinks are created. For some which are present in dotfiles and where I have a .local in dotfiles-local I'm asked if they should be overwritten. But nothing happens for files which are already somewhere in the filesystem (not being symlinks) outside of dotfiles and dotfiles-local.
Is that intended behaviour?
Update:
I found out, that it works if I put the gnupg config files under dotfiles/gnupg/and under dotfiles-local/gnupg/.
Apparently rcm ignores empty folders. So it's not enough to specify DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles" in dotfiles/rcrc. In my case dotfiles was authoritative for deciding if a folder was empty even if dotfiles-local should have had precedence.
As a workaround or maybe even better practise I just copied the dotfiles/rcrc to dotfiles-local/rcrc and also rcupdotfiles-local instead of dotfiles.
I wouldn't have noticed the problem if I had a dotfiles-local/rcrc in the first place.
The text was updated successfully, but these errors were encountered:
schmijos
changed the title
rcup doesn't ask to overwrite file with symlink
rcup doesn't ask to overwrite file with symlink to dotfiles-local
Aug 11, 2016
schmijos
changed the title
rcup doesn't ask to overwrite file with symlink to dotfiles-local
rcup not asking to overwrite file with symlink to dotfiles-local
Aug 11, 2016
schmijos
changed the title
rcup not asking to overwrite file with symlink to dotfiles-local
rcup ignoring empty folders even if not empty in first entry of DOTFILES_DIRS
Aug 11, 2016
I'm using Thoughtbot's dotfiles and my own dotfiles-local.
How can I force
rcup
to overwrite a config file with a symlink pointing todotfiles-local
?In my specific example I want to replace the installer generated gnupg configuration with my own one.
I've a
.gnupg
folder in my home directory looking like this:and I've a
gnupg
folder in mydotfiles-local
looking like this:When it comes to
lsrc
everthing seems like expected:But if I execute
rcup
, it doesn't ask to overwrite the file.gnupg/gpg-agent.conf
with a symlink todotfiles-local/gnupg/gpg-agent.conf
like I would expect. All other symlinks are created. For some which are present indotfiles
and where I have a.local
indotfiles-local
I'm asked if they should be overwritten. But nothing happens for files which are already somewhere in the filesystem (not being symlinks) outside ofdotfiles
anddotfiles-local
.Is that intended behaviour?
Update:
I found out, that it works if I put the gnupg config files under
dotfiles/gnupg/
and underdotfiles-local/gnupg/
.Could this be an issue of https://github.com/thoughtbot/dotfiles instead of rcm?
Update 2:
It seems there was some confusion about that already: thoughtbot/dotfiles@8c77a89
Update 3:
It seems to be an issue of rcm.
Apparently rcm ignores empty folders. So it's not enough to specify
DOTFILES_DIRS="$HOME/dotfiles-local $HOME/dotfiles"
indotfiles/rcrc
. In my casedotfiles
was authoritative for deciding if a folder was empty even ifdotfiles-local
should have had precedence.As a workaround or maybe even better practise I just copied the
dotfiles/rcrc
todotfiles-local/rcrc
and also rcupdotfiles-local
instead ofdotfiles
.I wouldn't have noticed the problem if I had a
dotfiles-local/rcrc
in the first place.The text was updated successfully, but these errors were encountered: