rcm icon indicating copy to clipboard operation
rcm copied to clipboard

mkrc Suggested improvements (mkrc 改进建议)

Open eonun opened this issue 3 years ago • 1 comments

When I added a dotfiles with mkrc, after some time I need to create more configuration files in the same directory, and now I need to add the new files to dotfiles for management, I used mkrc to add the whole directory again, and then the already added The configuration file is added again and the final file is not accessible. It is recommended to add a check to filter previously added configuration files. (当我使用 mkrc 添加了一个 dotfiles 后,过了一段时间又需要在同一个目录下新建了多个配置文件,现在需要将后面新建的文件加入到 dotfiles进行管理,我使用了 mkrc 又将整个目录进行了一次添加,这时就会将已经添加过的配置文件再次添加,访问不到最终文件。建议添加一个检查,用于过滤以前添加过的配置文件。)

Process (过程):

mkrc -t test .config/test

ls -l .config/test
... config -> ~/.dotfiles/tag-test/config/test/config

ls -l .dotfiles/tag-test/config/test/
... config



touch .cofig/shell
mkrc -t test .config/test
ls -l .config/test
... config -> ~/.dotfiles/tag-test/config/test/config
... test/

ls -l .config/test/test/
... config -> ~/.dotfiles/tag-test/config/test/test/config
... shell -> ~/.dotfiles/tag-test/config/test/test/shell

ls -l .dotfiles/tag-test/config/test/
... config
... test/

ls -l .dotfiles/tag-test/config/test/test
... config -> /home/eonun/.dotfiles/tag-test/config/test/config
... shell

config will not find the shellconfig找不到shell

eonun avatar May 18 '21 03:05 eonun

As far as I can tell, this should be fixed by #252.

mat-m avatar Jun 30 '21 22:06 mat-m