Skip to content

Commit

Permalink
feat: accelerating dotfiles debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan4yin committed Jan 11, 2024
1 parent ab88400 commit 08d834d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/best-practices/accelerating-dotfiles-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ nvim-test: nvim-clean

Now, when I need to quickly test my Neovim configuration after making changes, I simply run `just nvim-test`. Once testing is complete, I execute `just nvim-clean`, followed by redeploying the configuration using `nixos-rebuild`. This allows for swift testing and seamless restoration of the configuration.


This method is effective under the condition that your Dotfiles content is not generated by Nix. For instance, my Emacs/Neovim configurations are native and are linked to the appropriate locations solely through Nix Home-Manager's `home.file` or `xdg.configFile`.
2 changes: 1 addition & 1 deletion docs/zh/best-practices/accelerating-dotfiles-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ nvim-test: nvim-clean
然后在需要快速测试 Neovim 配置时,每次修改完配置后,跑一下 `just nvim-test`,我的配置就更新了。
测试完毕后,运行下 `just nvim-clean`,再重新用 `nixos-rebuild` 部署下配置,就完成了配置的还原。


这种方法能生效的前提是,你的 Dotfiles 内容不是由 Nix 生成的,比如我的 Emacs/Neovim 配置都是原生的,仅通过 Nix Home-Manager 的 `home.file``xdg.configFile` 将它们链接到正确的位置。

0 comments on commit 08d834d

Please sign in to comment.