tealdeer: add cache update activation script
Calls 'tldr --update' on home-manager switch
This commit is contained in:
parent
3df2a80f3f
commit
6b28ab2d79
4 changed files with 19 additions and 0 deletions
|
|
@ -49,5 +49,10 @@ in {
|
|||
home.file."${configDir}/tealdeer/config.toml" = mkIf (cfg.settings != { }) {
|
||||
source = tomlFormat.generate "tealdeer-config" cfg.settings;
|
||||
};
|
||||
|
||||
home.activation.tealdeerCache = hm.dag.entryAfter [ "linkGeneration" ] ''
|
||||
$VERBOSE_ECHO "Rebuilding tealdeer cache"
|
||||
$DRY_RUN_CMD ${getExe pkgs.tealdeer} --update
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue