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
I have some dotfiles that look like this: ~/dir/.some-config, but I haven't been able to figure out how to add those files to RCM.
If I add the file as ~/.dotfiles/dir/.some-config, rcup ignores the file since it starts with a dot, but if I add it as ~/.dotfiles/dir/some-config, it gets installed as ~/dir/some-config instead of ~/dir/.some-config.
I know I could use a hook to rename these files, but this seems like a very basic and common use case, so I must be missing something. How would you accomplish this?
The text was updated successfully, but these errors were encountered:
I thought I would share the post-up hook I used to work around this issue, for future reference in case somebody else has this issue.
In my dotfiles, I add an underscore before the dot so it's not ignored by RCM, like this: ~/.dotfiles/dir/_.some-config. First, rcup creates the symlink ~/dir/_.some-config, and then this hook renames the links to remove the underscore.
It also works with nested directories (~/aa/_.bb/_.cc/dd.txt -> ~/aa/.bb/.cc/dd.txt), so you should make sure your home directory (or its subdirectories, recursively) doesn't have unexpected directories that start with _..
I have some dotfiles that look like this:
~/dir/.some-config
, but I haven't been able to figure out how to add those files to RCM.If I add the file as
~/.dotfiles/dir/.some-config
,rcup
ignores the file since it starts with a dot, but if I add it as~/.dotfiles/dir/some-config
, it gets installed as~/dir/some-config
instead of~/dir/.some-config
.I know I could use a hook to rename these files, but this seems like a very basic and common use case, so I must be missing something. How would you accomplish this?
The text was updated successfully, but these errors were encountered: