News for hackers. Stuff that matters.
Re:Better Dotfiles by ashconnor on Friday September 06, 2024 @03:23PM (#41468957)
I migrated to chezmoi recently my only gripe is `chezmoi cd` opening in a new shell but `chezmoi git` usually is what I need. The age [0] integration is nice.

[0] - https://github.com/FiloSottile/age

Re:Better Dotfiles by baliex on Friday September 06, 2024 @05:51PM (#41469989)
I added an alias `cm='cd $(chezmoi source-path)'` to my shell config to cd to the chezmoi directory (without opening a new shell) so I can use all the usual commands (e.g. git) without need the chezmoi prefix. The alias is in a chezmoi-managed file, naturally.
Re:Better Dotfiles by twp on Saturday September 07, 2024 @09:26AM (#41473828)
Unfortunately there's no other way of doing this, except for adding a shell alias. See https://www.chezmoi.io/user-guide/frequently-asked-questions....
Re:Better Dotfiles by ashconnor on Sunday September 08, 2024 @12:39AM (#41478239)
Makes sense. Thank you for the project.